diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-08-14 19:05:41 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-08-14 19:05:41 +0000 |
commit | 8f82f023c394be8bba83c53e1ceeb3bbaf54e41d (patch) | |
tree | 95e67ed919d55f59d208a4c7cb0230aee6022306 /Source/SPTooltip.m | |
parent | 688757b751d6ebe8a0e33ab0e431bc711a69eca5 (diff) | |
download | sequelpro-8f82f023c394be8bba83c53e1ceeb3bbaf54e41d.tar.gz sequelpro-8f82f023c394be8bba83c53e1ceeb3bbaf54e41d.tar.bz2 sequelpro-8f82f023c394be8bba83c53e1ceeb3bbaf54e41d.zip |
• improved SPTooltip
- type "text" now displays \n and \t correctly
Diffstat (limited to 'Source/SPTooltip.m')
-rw-r--r-- | Source/SPTooltip.m | 6 |
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:@"&" options:0 range:NSMakeRange(0, [text length])]; [text replaceOccurrencesOfString:@"<" withString:@"<" 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 |