Add some merge for WebVTT

This commit is contained in:
niksedk 2021-12-16 19:48:28 +01:00
parent 7cf43f3d2e
commit d567266289

View File

@ -340,7 +340,11 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
paragraph.StartTime.TotalMilliseconds += addSeconds * 1000;
paragraph.EndTime.TotalMilliseconds += addSeconds * 1000;
}
subtitle.Renumber();
var merged = MergeLinesSameTextUtils.MergeLinesWithSameTextInSubtitle(subtitle, false, 1);
subtitle.Paragraphs.Clear();
subtitle.Paragraphs.AddRange(merged.Paragraphs);
if (header.Length > 0)
{
subtitle.Header = header