Merge branch 'bug/pretzel-terminal-spacing' into 'dev'

Term spacing between player name and message

See merge request crafty-controller/crafty-4!256
This commit is contained in:
Andrew 2022-05-15 02:19:38 +00:00
commit 8e9d88b8f9

View File

@ -70,9 +70,7 @@ class AjaxHandler(BaseHandler):
for line in data:
try:
line = re.sub(
"(\033\\[(0;)?[0-9]*[A-z]?(;[0-9])?m?)|(> )", "", line
)
line = re.sub("(\033\\[(0;)?[0-9]*[A-z]?(;[0-9])?m?)", "", line)
line = re.sub("[A-z]{2}\b\b", "", line)
line = self.helper.log_colors(html.escape(line))
self.write(f"{line}<br />")