Merge pull request #7975 from ivandrofly/feature/fixdoubledash-fr

Avoid replacing punctuation for French in FixDoubleDash
This commit is contained in:
Nikolaj Olsson 2024-02-26 07:12:39 +01:00 committed by GitHub
commit e7a682164a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,8 +35,12 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
text = text.TrimEnd();
text = text.Replace("... " + Environment.NewLine, "..." + Environment.NewLine);
text = text.Replace("... </", "...</"); // </i>, </font>...
if (callbacks.Language != "fr")
{
text = text.Replace("... ?", "...?");
text = text.Replace("... !", "...!");
}
if (text.IndexOf(Environment.NewLine, StringComparison.Ordinal) > 1)
{