From bed671908f515bf10a0db54ce201aa54d0fb49db Mon Sep 17 00:00:00 2001 From: Taicanium Date: Tue, 26 Mar 2024 03:21:12 -0500 Subject: [PATCH] 1.1.3.11 Changes --- CHANGELOG.md | 5 ++++- MessagePool.cs | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c8115bc..d325a32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ -# 1.1.3.10 - +# 1.1.3.11 - 26/03/2024 +- Hotfix: Italic HTML tags are no longer inserted into plaintext. + +# 1.1.3.10 - 25/03/2024 - Fixed a misplaced function causing single-file HTML output to be written without a header or styling. - \/me messages are now italicized according to the native client's renderer rather than left plain. - Under-the-hood changes to error message selection which are less efficient but also much cleaner. diff --git a/MessagePool.cs b/MessagePool.cs index 1499056..953b467 100644 --- a/MessagePool.cs +++ b/MessagePool.cs @@ -602,7 +602,7 @@ private static bool TranslateMessage(FileStream srcFS, StreamWriter dstFS) foreach (KeyValuePair entity in htmlEntities) messageOut = Regex.Replace(messageOut, entity.Key, entity.Value); - if (msId == MessageType.Me || msId == MessageType.DiceRoll) + if (!Common.plaintext && (msId == MessageType.Me || msId == MessageType.DiceRoll)) { messageOut = "" + messageOut; tagHistory.Push("i"); @@ -727,7 +727,7 @@ private static string TranslateTags(string message) string messageOut = message; bool noParse = false; string partialParse = string.Empty; - string tag = string.Empty; + string tag; MatchCollection tags = BBCodeTags().Matches(messageOut); string URL = string.Empty;