Fix for 'remove dash' in 'Fix common errors' - thx xhmikosr :)

This commit is contained in:
niksedk 2014-11-23 21:42:44 +01:00
parent e34866c53b
commit a0a6793ec9

View File

@ -2958,7 +2958,7 @@ namespace Nikse.SubtitleEdit.Forms
{
Paragraph prev = Subtitle.GetParagraphOrDefault(i - 1);
if (prev == null || !Utilities.RemoveHtmlTags(prev.Text).TrimEnd().EndsWith('-'))
if (prev == null || !Utilities.RemoveHtmlTags(prev.Text).TrimEnd().EndsWith('-') || Utilities.RemoveHtmlTags(prev.Text).TrimEnd().EndsWith("--"))
{
var lines = Utilities.RemoveHtmlTags(p.Text).Split(Utilities.NewLineChars, StringSplitOptions.RemoveEmptyEntries);
int startHyphenCount = 0;