Skip to content

Commit

Permalink
1.1.3.11 Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Taicanium committed Mar 26, 2024
1 parent fa2c670 commit bed6719
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions MessagePool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ private static bool TranslateMessage(FileStream srcFS, StreamWriter dstFS)
foreach (KeyValuePair<string, string> 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 = "<i>" + messageOut;
tagHistory.Push("i");
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit bed6719

Please sign in to comment.