Only add color tags if a style supports colors. Fixes #13286.
authorZachary West <zacw@adium.im>
Sat Oct 31 22:35:08 2009 -0400 (2009-10-31)
changeset 2718dce9e8066777
parent 2717 50f1ae85f841
child 2719 884572c52b7d
Only add color tags if a style supports colors. Fixes #13286.
Plugins/WebKit Message View/AIWebkitMessageViewStyle.m
     1.1 --- a/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sat Oct 31 19:02:43 2009 -0400
     1.2 +++ b/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Sat Oct 31 22:35:08 2009 -0400
     1.3 @@ -717,7 +717,7 @@
     1.4  	NSString		*htmlEncodedMessage = [AIHTMLDecoder encodeHTML:[content message]
     1.5  															headers:NO 
     1.6  														   fontTags:showIncomingFonts
     1.7 -												 includingColorTags:showIncomingColors
     1.8 +												 includingColorTags:(allowsColors && showIncomingColors)
     1.9  													  closeFontTags:YES
    1.10  														  styleTags:YES
    1.11  										 closeStyleTagsOnFontChange:YES