mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
Only writes " " in sami if next subtitle is further away then 100ms
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1409 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
5bc5f6d644
commit
dcbb167f66
@ -165,7 +165,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
|
|||||||
string currentClass = languageTag;
|
string currentClass = languageTag;
|
||||||
if (useExtra && !string.IsNullOrEmpty(p.Extra))
|
if (useExtra && !string.IsNullOrEmpty(p.Extra))
|
||||||
currentClass = p.Extra;
|
currentClass = p.Extra;
|
||||||
if (next != null && p.EndTime.TotalMilliseconds <= next.StartTime.TotalMilliseconds && p.EndTime.TotalMilliseconds + 51 > next.StartTime.TotalMilliseconds)
|
if (next != null && Math.Abs(next.StartTime.TotalMilliseconds - p.EndTime.TotalMilliseconds) < 100)
|
||||||
sb.AppendLine(string.Format(paragraphWriteFormatOpen, p.StartTime.TotalMilliseconds, text, currentClass));
|
sb.AppendLine(string.Format(paragraphWriteFormatOpen, p.StartTime.TotalMilliseconds, text, currentClass));
|
||||||
else
|
else
|
||||||
sb.AppendLine(string.Format(paragraphWriteFormat, p.StartTime.TotalMilliseconds, p.EndTime.TotalMilliseconds, text, currentClass));
|
sb.AppendLine(string.Format(paragraphWriteFormat, p.StartTime.TotalMilliseconds, p.EndTime.TotalMilliseconds, text, currentClass));
|
||||||
|
Loading…
Reference in New Issue
Block a user