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 <Ivandrofly@gmail.com>
This commit is contained in:
Ivandro Jao 2024-07-25 23:21:57 +01:00
parent 7b0c79c5ee
commit b4e5911d75

View File

@ -207,7 +207,7 @@ namespace Nikse.SubtitleEdit.Core.Common
{
tagOn = true;
}
else if (ch == '<' || ch == '}')
else if (ch == '>' || ch == '}')
{
tagOn = false;
}