From a0a6793ec96475e27d2c8d01db8823ede2cde172 Mon Sep 17 00:00:00 2001 From: niksedk Date: Sun, 23 Nov 2014 21:42:44 +0100 Subject: [PATCH] Fix for 'remove dash' in 'Fix common errors' - thx xhmikosr :) --- src/Forms/FixCommonErrors.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/FixCommonErrors.cs b/src/Forms/FixCommonErrors.cs index 2ba915001..64ea55e4d 100644 --- a/src/Forms/FixCommonErrors.cs +++ b/src/Forms/FixCommonErrors.cs @@ -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;