mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
parent
8c941f84b1
commit
df442d9f64
@ -2169,6 +2169,16 @@ namespace Nikse.SubtitleEdit.Core
|
||||
text = text.Replace(" ,", ",");
|
||||
}
|
||||
|
||||
while (text.Contains(" 's "))
|
||||
{
|
||||
text = text.Replace(" 's ", "'s ");
|
||||
}
|
||||
|
||||
while (text.Contains(" 's" + Environment.NewLine))
|
||||
{
|
||||
text = text.Replace(" 's" + Environment.NewLine, "'s" + Environment.NewLine);
|
||||
}
|
||||
|
||||
if (text.EndsWith(" .", StringComparison.Ordinal))
|
||||
{
|
||||
text = text.Remove(text.Length - 2, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user