From fd0f765ad5aa06940c0e31ef0ba0eb192bedd8af Mon Sep 17 00:00:00 2001 From: BlauFeuer Date: Sat, 22 Oct 2016 14:06:19 -0400 Subject: [PATCH] MXP tags to use double quote instead of single This works around the problem of having to escape single quotes (apostrophes) in MXP commands or texts, but then requires (simple) double quotes to be escaped. --- evennia/server/portal/mxp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/server/portal/mxp.py b/evennia/server/portal/mxp.py index 0d7efefd34..e62e65c2c7 100644 --- a/evennia/server/portal/mxp.py +++ b/evennia/server/portal/mxp.py @@ -21,7 +21,7 @@ LINKS_SUB = re.compile(r'\|lc(.*?)\|lt(.*?)\|le', re.DOTALL) MXP = "\x5B" MXP_TEMPSECURE = "\x1B[4z" MXP_SEND = MXP_TEMPSECURE + \ - "" + \ + "" + \ "\\2" + \ MXP_TEMPSECURE + \ ""