Update change log

This commit is contained in:
Nikolaj Olsson 2024-03-16 19:36:36 +01:00
parent 4b613fffd8
commit 87fc742c75
2 changed files with 3 additions and 3 deletions

View File

@ -55,6 +55,7 @@
* Fix crash in "Fix commo errors" - thx dramirvf
* Fix auto generate waveform with video with empty audio - thx LeonCheung
* Fix a few broken spell check dictionary links
* Fix removing italic when toggling music symbols - thx Charvelx04
4.0.3 (23rd December 2023)

View File

@ -3191,12 +3191,12 @@ namespace Nikse.SubtitleEdit.Core.Common
{
return pre + text.Replace(tag, string.Empty).Replace(endTag, string.Empty).Replace(Environment.NewLine + " ", Environment.NewLine).Replace(" " + Environment.NewLine, Environment.NewLine).Trim() + post;
}
if (string.IsNullOrEmpty(endTag) && !string.IsNullOrEmpty(tag))
{
return pre + text.Replace(tag, string.Empty).Replace(Environment.NewLine + " ", Environment.NewLine).Replace(" " + Environment.NewLine, Environment.NewLine).Trim() + post;
}
if (!string.IsNullOrEmpty(endTag))
{
return pre + text.Replace(endTag, string.Empty).Replace(Environment.NewLine + " ", Environment.NewLine).Replace(" " + Environment.NewLine, Environment.NewLine).Trim() + post;
@ -3206,7 +3206,6 @@ namespace Nikse.SubtitleEdit.Core.Common
return pre + text + post;
}
public static string AddSymbols(string tag, string text, string endTag)
{
text = RemoveSymbols(tag, text, endTag);