Fix issue with "Merge short lines" - thx despairTK :)

Work on  #7735
Allow merge short lines when "%" and "$" ending
This commit is contained in:
Nikolaj Olsson 2023-12-14 18:37:04 +01:00
parent 056cac00b8
commit b29c3cb995

View File

@ -2971,11 +2971,8 @@ namespace Nikse.SubtitleEdit.Core.Common
return true;
}
var isLineContinuation = s.EndsWith(',') ||
s.EndsWith('-') ||
s.EndsWith("...", StringComparison.Ordinal) ||
s.EndsWith("…", StringComparison.Ordinal) ||
AllLetters.Contains(s.Substring(s.Length - 1)) ||
var isLineContinuation = s.EndsWith("...", StringComparison.Ordinal) ||
(AllLetters + "…,-$%").Contains(s.Substring(s.Length - 1)) ||
CalcCjk.IsCjk(s[s.Length - 1]);
if (s.EndsWith('♪') || nextText.StartsWith('♪'))