mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
[Bugfix] - Fix bug QualifiesForMerge will return incorrect return if nextText Contains html/Ssa tags
This commit is contained in:
parent
1c9b09ceb0
commit
42cf4f63b8
@ -223,9 +223,9 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
if (p != null && p.Text != null && next != null && next.Text != null)
|
||||
{
|
||||
string s = HtmlUtil.RemoveHtmlTags(p.Text.Trim());
|
||||
|
||||
if (p.Text.Length + next.Text.Length < maximumTotalLength && next.StartTime.TotalMilliseconds - p.EndTime.TotalMilliseconds < maximumMillisecondsBetweenLines)
|
||||
var s = HtmlUtil.RemoveHtmlTags(p.Text.Trim(), true);
|
||||
var nextText = HtmlUtil.RemoveHtmlTags(next.Text.Trim(), true);
|
||||
if (s.Length + nextText.Length < maximumTotalLength && next.StartTime.TotalMilliseconds - p.EndTime.TotalMilliseconds < maximumMillisecondsBetweenLines)
|
||||
{
|
||||
if (string.IsNullOrEmpty(s))
|
||||
return true;
|
||||
@ -234,8 +234,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
if (!checkBoxOnlyContinuationLines.Checked)
|
||||
return true;
|
||||
|
||||
if (isLineContinuation)
|
||||
return true;
|
||||
return isLineContinuation;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user