mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Fix for 'remove dash' in 'Fix common errors' - thx xhmikosr :)
This commit is contained in:
parent
e34866c53b
commit
a0a6793ec9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user