From 3da28c5ba9aa09f7a754d8651cc5ded190828891 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 13 Aug 2017 18:08:06 +0200 Subject: [PATCH] Change `|-` into a 4-space indent and shift the TAB character to the `|t` tag. Resolves 1393. --- evennia/utils/ansi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/evennia/utils/ansi.py b/evennia/utils/ansi.py index c44bf5caab..e563d864de 100644 --- a/evennia/utils/ansi.py +++ b/evennia/utils/ansi.py @@ -323,7 +323,8 @@ class ANSIParser(object): ext_ansi_map = [ (r'{n', ANSI_NORMAL), # reset (r'{/', ANSI_RETURN), # line break - (r'{-', ANSI_TAB), # tab + (r'{-', 4*ANSI_SPACE), # "fixed" tab + (r'{t', ANSI_TAB), # tab (r'{_', ANSI_SPACE), # space (r'{*', ANSI_INVERSE), # invert (r'{^', ANSI_BLINK), # blinking text (very annoying and not supported by all clients) @@ -374,7 +375,8 @@ class ANSIParser(object): (r'|n', ANSI_NORMAL), # reset (r'|/', ANSI_RETURN), # line break - (r'|-', ANSI_TAB), # tab + (r'|-', 4*ANSI_SPACE), # "fixed" tab, for indentation + (r'|t', ANSI_TAB), # tab (r'|_', ANSI_SPACE), # space (r'|*', ANSI_INVERSE), # invert (r'|^', ANSI_BLINK), # blinking text (very annoying and not supported by all clients)