mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Update TSB4.cs
This commit is contained in:
parent
8b0d69a4f2
commit
c4bc7a1ddf
@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System;
|
||||
|
||||
namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
{
|
||||
@ -89,7 +90,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
string text = Encoding.GetEncoding(CodePage).GetString(array, textStart, length);
|
||||
// text = Encoding.Default.GetString(array, i + 53, endOfText - 47);
|
||||
text = text.Trim('\0').Replace("\0", " ").Trim();
|
||||
text = string.join(Environment.NewLine, text.SplitToLines()); //conform to CRLF
|
||||
text = string.Join(Environment.NewLine, text.SplitToLines()); //conform to CRLF
|
||||
var item = new Paragraph(text, FramesToMilliseconds(start), FramesToMilliseconds(end));
|
||||
subtitle.Paragraphs.Add(item);
|
||||
i += endOfText + 5;
|
||||
|
Loading…
Reference in New Issue
Block a user