mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Fix issue with "Merge short lines" - thx despairTK :)
Work on #7735 Allow merge short lines when "%" and "$" ending
This commit is contained in:
parent
056cac00b8
commit
b29c3cb995
@ -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('♪'))
|
||||
|
Loading…
Reference in New Issue
Block a user