[ocr] - minor fix

This commit is contained in:
ivandrofly 2015-09-01 19:15:10 +01:00
parent 26d3e02bd4
commit 4d9c12d676

View File

@ -185,8 +185,7 @@ namespace Nikse.SubtitleEdit.Core.Dictionaries
}
sb.AppendLine(s);
}
newText = sb.ToString().TrimEnd('\r').TrimEnd('\n').TrimEnd('\r').TrimEnd('\n');
newText = pre + newText;
newText = pre + sb.ToString().TrimEnd('\r', '\n');
string post = string.Empty;
if (newText.EndsWith("</i>", StringComparison.Ordinal))