mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Use extension method to unbreak lines
This commit is contained in:
parent
58ccd56598
commit
6f398a0428
@ -19,7 +19,7 @@ namespace Nikse.SubtitleEdit.Logic.Forms
|
||||
return true;
|
||||
}
|
||||
|
||||
var tempText = text.Replace(Environment.NewLine, " ").Replace(" ", " ");
|
||||
var tempText = Utilities.UnbreakLine(text);
|
||||
if (Utilities.CountTagInText(tempText, '-') == 2 && (text.StartsWith('-') || text.StartsWith("<i>-")))
|
||||
{
|
||||
var idx = tempText.IndexOfAny(new[] { ". -", "! -", "? -" }, StringComparison.Ordinal);
|
||||
|
Loading…
Reference in New Issue
Block a user