Skip to content

Commit

Permalink
fix runechat being jank with emphasis (#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapu1178 authored Feb 6, 2024
1 parent 6d2439f commit 7ade8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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("(?<!\\\\)[char](.+?)(?<!\\\\)[char]", "g");\
input = varname.Replace_char(input, "<[html]>$1</[html]>")
input = varname.Replace_char(input, "<[html]>$1</[html]>&#8203;") //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)
Expand Down

0 comments on commit 7ade8ec

Please sign in to comment.