From efe0c69d3a9157a171433e3721948ed841357060 Mon Sep 17 00:00:00 2001 From: Ivandro Jao Date: Mon, 18 Mar 2024 15:23:11 +0000 Subject: [PATCH] Rename variable in FixDoubleGreaterThanHelper The variable 'post' within the method 'FixDoubleGreaterThanHelper' has been renamed to 'pre'. This change is made to better align the variable name with its actual use within the method, as it prepares (or prefixes) content before processing the 'text' input. --- src/libse/Forms/FixCommonErrors/Helper.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libse/Forms/FixCommonErrors/Helper.cs b/src/libse/Forms/FixCommonErrors/Helper.cs index acc3c8cce..8706eabad 100644 --- a/src/libse/Forms/FixCommonErrors/Helper.cs +++ b/src/libse/Forms/FixCommonErrors/Helper.cs @@ -608,10 +608,10 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors public static string FixDoubleGreaterThanHelper(string text) { - var post = string.Empty; + var pre = string.Empty; if (text.Length > 3 && text[0] == '<' && text[2] == '>' && (text[1] == 'i' || text[1] == 'b' || text[1] == 'u')) { - post += "<" + text[1] + ">"; + pre += "<" + text[1] + ">"; text = text.Remove(0, 3).TrimStart(); } @@ -620,7 +620,7 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors var endIdx = text.IndexOf('>', 5); if (endIdx >= 5 && endIdx < text.Length - 7) { - post += text.Substring(0, endIdx + 1); + pre += text.Substring(0, endIdx + 1); text = text.Substring(endIdx + 1).TrimStart(); } } @@ -630,7 +630,7 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors text = text.TrimStart('>', ' ').TrimStart(); } - return post + text; + return pre + text; } private static readonly char[] NoShortLineList = { '.', '?', '!', ':', ';', '…', '♪', '♫' };