aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-08-14 19:05:41 +0000
committerBibiko <bibiko@eva.mpg.de>2009-08-14 19:05:41 +0000
commit8f82f023c394be8bba83c53e1ceeb3bbaf54e41d (patch)
tree95e67ed919d55f59d208a4c7cb0230aee6022306 /Source
parent688757b751d6ebe8a0e33ab0e431bc711a69eca5 (diff)
downloadsequelpro-8f82f023c394be8bba83c53e1ceeb3bbaf54e41d.tar.gz
sequelpro-8f82f023c394be8bba83c53e1ceeb3bbaf54e41d.tar.bz2
sequelpro-8f82f023c394be8bba83c53e1ceeb3bbaf54e41d.zip
• improved SPTooltip
- type "text" now displays \n and \t correctly
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTooltip.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPTooltip.m b/Source/SPTooltip.m
index 315ea92c..94017795 100644
--- a/Source/SPTooltip.m
+++ b/Source/SPTooltip.m
@@ -128,8 +128,10 @@ static float slow_in_out (float t)
{
[text replaceOccurrencesOfString:@"&" withString:@"&amp;" options:0 range:NSMakeRange(0, [text length])];
[text replaceOccurrencesOfString:@"<" withString:@"&lt;" options:0 range:NSMakeRange(0, [text length])];
- // [text insertString:@"<pre>" atIndex:0];
- // [text appendString:@"</pre>"];
+ [text insertString:[NSString stringWithFormat:@"<pre style=\"font-family:'%@';\">",
+ ([displayOptions objectForKey:@"fontname"]) ? [displayOptions objectForKey:@"fontname"] : @"Lucida Grande"]
+ atIndex:0];
+ [text appendString:@"</pre>"];
html = text;
}
else