From 501c9f73a1be6556cf455e9f3377317323bcf0f9 Mon Sep 17 00:00:00 2001 From: BlauFeuer Date: Wed, 26 Oct 2016 15:12:41 -0400 Subject: [PATCH] text2html.py Use double quotes in HTML MXP link This just changes the problem from not escaping single quotes properly to not escaping double quotes when supplied in the MXP command or text. --- evennia/utils/text2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/utils/text2html.py b/evennia/utils/text2html.py index 066301beba..1275927766 100644 --- a/evennia/utils/text2html.py +++ b/evennia/utils/text2html.py @@ -243,7 +243,7 @@ class TextToHTMLparser(object): text (str): Processed text. """ - return self.re_mxplink.sub(r"""\2""", text) + return self.re_mxplink.sub(r'''\2''', text) def do_sub(self, match): """