mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Fix related to font tag in video preview text - thx Mohammad :)
Fix #2769
This commit is contained in:
parent
1a428502e0
commit
de658e8327
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user