Fix related to font tag in video preview text - thx Mohammad :)

Fix #2769
This commit is contained in:
Nikolaj Olsson 2018-02-19 18:00:22 +01:00
parent 1a428502e0
commit de658e8327

View File

@ -540,6 +540,10 @@ namespace Nikse.SubtitleEdit.Controls
isFontColor = false;
i += 6;
}
else if (text.Substring(i).StartsWith("</font>", StringComparison.OrdinalIgnoreCase))
{
i += 6;
}
else if (text[i] == '\n') // RichTextBox only count NewLine as one character!
{
sb.Append(text[i]);