From b4e5911d75abbff7d5fe067cc8403b23679a2e85 Mon Sep 17 00:00:00 2001 From: Ivandro Jao Date: Thu, 25 Jul 2024 23:21:57 +0100 Subject: [PATCH] Fix incorrect character check in tag detection logic Changed the character check from '<' to '>' in the tag detection logic to properly toggle the tagOn variable. This corrects the behavior for closing tags, improving markup parsing accuracy. Signed-off-by: Ivandro Jao --- src/libse/Common/FixCasing.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libse/Common/FixCasing.cs b/src/libse/Common/FixCasing.cs index aa0bd87c4..fa5da1a04 100644 --- a/src/libse/Common/FixCasing.cs +++ b/src/libse/Common/FixCasing.cs @@ -207,7 +207,7 @@ namespace Nikse.SubtitleEdit.Core.Common { tagOn = true; } - else if (ch == '<' || ch == '}') + else if (ch == '>' || ch == '}') { tagOn = false; }