Remove text for Hearing Impaired if only music symbolx - thx fraternl :)

Fix #7541
This commit is contained in:
niksedk 2023-10-22 15:20:52 +02:00
parent 5ba786ea9f
commit 6df5a64e3a

View File

@ -1196,6 +1196,11 @@ namespace Nikse.SubtitleEdit.Core.Forms
text = text.Trim();
if (text.Replace('♪', ' ').Replace('♫', ' ').Trim().Length == 0)
{
return string.Empty;
}
// keep U2010 dashes if no changes
if (originalAfterU2010Replace == text)
{