Uses normal space (char32) and not non-breaking unicode space (char160) in format sami

This commit is contained in:
nikse.dk 2014-02-06 21:05:57 +01:00
parent fd9afb25c4
commit 4ca67ca9c1

View File

@ -412,6 +412,11 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
(subtitle.Paragraphs[subtitle.Paragraphs.Count-1].Text.ToUpper().Trim() == "</BODY>" ||
subtitle.Paragraphs[subtitle.Paragraphs.Count-1].Text.ToUpper().Trim() == "<BODY>"))
subtitle.Paragraphs.RemoveAt(subtitle.Paragraphs.Count - 1);
foreach (Paragraph p2 in subtitle.Paragraphs)
{
p2.Text = p2.Text.Replace(Convert.ToChar(160), ' '); // non-breaking space to normal space
}
}
public override bool HasStyleSupport