Fixed line breaking bug in mpl format - thx Przemek

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@311 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-02-04 22:22:10 +00:00
parent 6667fc0621
commit 5221c480b1

View File

@ -117,6 +117,7 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
if (textIndex < s.Length) if (textIndex < s.Length)
{ {
string text = s.Substring(textIndex); string text = s.Substring(textIndex);
text = text.Replace("|", Environment.NewLine);
string temp = s.Substring(0, textIndex - 1); string temp = s.Substring(0, textIndex - 1);
string[] frames = temp.Replace("][", ":").Replace("[", string.Empty).Replace("]", string.Empty).Split(':'); string[] frames = temp.Replace("][", ":").Replace("[", string.Empty).Replace("]", string.Empty).Split(':');