Made settings listing from launcher alphabetical. Fixed bug in mxp-to-html for the webclient.

This commit is contained in:
Griatch 2015-03-07 16:04:08 +01:00
parent 19b1ef8fc9
commit fe48757928
2 changed files with 5 additions and 4 deletions

View file

@ -124,8 +124,9 @@ class TextToHTMLparser(object):
"""
Replaces links with HTML code
"""
html = "<a href='#' onclick='websocket.send(\"\\1\"); return false;'>\\2</a>"
return self.re_link.sub(html, text)
html = "<a href='#' onclick='websocket.send(\"CMD\\1\"); return false;'>\\2</a>"
repl = self.re_link.sub(html, text)
return repl
def do_sub(self, m):
"Helper method to be passed to re.sub."