From 6df5a64e3abce67b33d7b3c7c99836814d7fc1b2 Mon Sep 17 00:00:00 2001 From: niksedk Date: Sun, 22 Oct 2023 15:20:52 +0200 Subject: [PATCH] Remove text for Hearing Impaired if only music symbolx - thx fraternl :) Fix #7541 --- src/libse/Forms/RemoveTextForHI.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libse/Forms/RemoveTextForHI.cs b/src/libse/Forms/RemoveTextForHI.cs index a84aeed9f..501d90f3d 100644 --- a/src/libse/Forms/RemoveTextForHI.cs +++ b/src/libse/Forms/RemoveTextForHI.cs @@ -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) {