Fix for "Split long lines" with html tags - thx moob :)

Fix #3359
This commit is contained in:
Nikolaj Olsson 2019-02-12 06:59:52 +01:00
parent 9651287ee7
commit 07dfe71c03

View File

@ -22,7 +22,7 @@ namespace Nikse.SubtitleEdit.Core.Forms
}
}
var tempText = Utilities.UnbreakLine(text);
var tempText = Utilities.UnbreakLine(s);
if (Utilities.CountTagInText(tempText, '-') == 2 && (text.StartsWith('-') || text.StartsWith("<i>-")))
{
var idx = tempText.IndexOfAny(new[] { ". -", "! -", "? -" }, StringComparison.Ordinal);