mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 12:44:46 +01:00
[Fix + Update] - Fix (FixUneededPeriods.cs)
This commit is contained in:
parent
5445b308b9
commit
129013669f
@ -36,15 +36,18 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
|
||||
p.Text = p.Text.TrimEnd('.');
|
||||
unneededPeriodsFixed++;
|
||||
}
|
||||
|
||||
var len = p.Text.Length;
|
||||
if (p.Text.Contains("!. "))
|
||||
{
|
||||
p.Text = p.Text.Replace("!. ", "! ");
|
||||
unneededPeriodsFixed++;
|
||||
unneededPeriodsFixed += len - p.Text.Length;
|
||||
len = p.Text.Length;
|
||||
}
|
||||
if (p.Text.Contains("?. "))
|
||||
{
|
||||
p.Text = p.Text.Replace("?. ", "? ");
|
||||
unneededPeriodsFixed++;
|
||||
unneededPeriodsFixed += len - p.Text.Length;
|
||||
}
|
||||
|
||||
if (p.Text != oldText)
|
||||
|
Loading…
Reference in New Issue
Block a user