Close the bold tag correctly.
This commit is contained in:
1 parent
3bf6d614b6
commit
3ed5ca860a
2 files changed
+4
-4
No files matched your search
@@ -210,7 +210,7 @@ static void insertTagsFromStyleRecord(style_record record, NSMutableString *samp
|
||||
insertTag(@"</i>", sampleText, &index, fontStyles, kStyleItalic, kTagClose);
|
||||
|
||||
if (!(record.fontStyles & kStyleBold) && *fontStyles & kStyleBold)
|
||||
insertTag(@"</b>", sampleText, &index, fontStyles, kStyleBold, kStyleColor);
|
||||
insertTag(@"</b>", sampleText, &index, fontStyles, kStyleBold, kTagClose);
|
||||
|
||||
|
||||
if ((!(record.fontStyles & kStyleColor) && *fontStyles & kStyleColor))
|
||||
|
||||
Reference in new issue
Block a user