From d3cb4c8053da1b43c9ece5a65e821e8250d9cd64 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Fri, 29 Mar 2024 06:37:42 +0100 Subject: [PATCH] Fix minor formatting --- src/libse/Common/HtmlUtil.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/libse/Common/HtmlUtil.cs b/src/libse/Common/HtmlUtil.cs index c62270027..c25567dcb 100644 --- a/src/libse/Common/HtmlUtil.cs +++ b/src/libse/Common/HtmlUtil.cs @@ -596,7 +596,7 @@ namespace Nikse.SubtitleEdit.Core.Common } var len = text.Length; - int index = 0; + var index = 0; while (index < len && text[index] == '<') { index = text.IndexOf('>', index + 1); @@ -618,9 +618,12 @@ namespace Nikse.SubtitleEdit.Core.Common fromLenIdx = fromLenIdx > 0 ? fromLenIdx : len; // no formattable text in between - if (fromLenIdx < index) return false; + if (fromLenIdx < index) + { + return false; + } - for (int i = index; i <= fromLenIdx; i++) + for (var i = index; i <= fromLenIdx; i++) { if (char.IsLetterOrDigit(text[i])) {