Skip to content

Commit

Permalink
Ports runechat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMelbert committed Feb 8, 2024
1 parent ceb8d6e commit 22542fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,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
2 changes: 1 addition & 1 deletion strings/tips.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@You can use the |, + and _ characters to emphasize parts of what you say in-game (e.g. say"my _ass_ |is| +heavy+." will be outputted as "my <u>ass</u> <i>is</i> <b>heavy</b>."). You can also escape these emphasizers by appending backslashes before them (e.g. say"1\+2\+3" will come out as "1+2+3" and not "1\<b>2\</b>3").
@You can <i>italicize</i>, <b>embolden</b> or <u>underline</u> portions of your messages by enclosing them with |, + or _ respectively. You can also avoid this by adding backslashes (they won't show in the message) before these characters.
♪ Hey, have you ever tried appending the % character before your messages when speaking in-game? ♫
A Scientist will pay top dollar for your frogs!
A thrown glass of water can make a slippery tile, allowing you to slow down your pursuers in a pinch.
Expand Down

0 comments on commit 22542fc

Please sign in to comment.