From 7ade8eccc0b9d5b8a45d6db575c39e0a153efd8e Mon Sep 17 00:00:00 2001 From: Kapu1178 <75460809+Kapu1178@users.noreply.github.com> Date: Tue, 6 Feb 2024 15:26:12 -0500 Subject: [PATCH] fix runechat being jank with emphasis (#799) --- code/game/say.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/say.dm b/code/game/say.dm index e1b5488337e5..7fd667d1057e 100644 --- a/code/game/say.dm +++ b/code/game/say.dm @@ -141,7 +141,7 @@ GLOBAL_LIST_INIT(freqtospan, list( /// Transforms the speech emphasis mods from [/atom/movable/proc/say_emphasis] into the appropriate HTML tags. Includes escaping. #define ENCODE_HTML_EMPHASIS(input, char, html, varname) \ var/static/regex/##varname = regex("(?$1") + input = varname.Replace_char(input, "<[html]>$1​") //zero-width space to force maptext to respect closing tags. /// Scans the input sentence for speech emphasis modifiers, notably |italics|, +bold+, and _underline_ -mothblocks /atom/movable/proc/say_emphasis(input)