mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
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:
commit
8e9d88b8f9
@ -70,9 +70,7 @@ class AjaxHandler(BaseHandler):
|
|||||||
|
|
||||||
for line in data:
|
for line in data:
|
||||||
try:
|
try:
|
||||||
line = re.sub(
|
line = re.sub("(\033\\[(0;)?[0-9]*[A-z]?(;[0-9])?m?)", "", line)
|
||||||
"(\033\\[(0;)?[0-9]*[A-z]?(;[0-9])?m?)|(> )", "", line
|
|
||||||
)
|
|
||||||
line = re.sub("[A-z]{2}\b\b", "", line)
|
line = re.sub("[A-z]{2}\b\b", "", line)
|
||||||
line = self.helper.log_colors(html.escape(line))
|
line = self.helper.log_colors(html.escape(line))
|
||||||
self.write(f"{line}<br />")
|
self.write(f"{line}<br />")
|
||||||
|
Loading…
Reference in New Issue
Block a user