From 8f82f023c394be8bba83c53e1ceeb3bbaf54e41d Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 14 Aug 2009 19:05:41 +0000 Subject: =?UTF-8?q?=E2=80=A2=20improved=20SPTooltip=20-=20type=20"text"=20?= =?UTF-8?q?now=20displays=20\n=20and=20\t=20correctly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTooltip.m | 6 ++++-- 1 file 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:@"
" atIndex:0];
-			// [text appendString:@"
"]; + [text insertString:[NSString stringWithFormat:@"
", 
+				([displayOptions objectForKey:@"fontname"]) ? [displayOptions objectForKey:@"fontname"] : @"Lucida Grande"] 
+				atIndex:0];
+			[text appendString:@"
"]; html = text; } else -- cgit v1.2.3