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