mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Add some merge for WebVTT
This commit is contained in:
parent
7cf43f3d2e
commit
d567266289
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user