]> git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/util.py
Replace ^^ with ^.
[xonotic/xonstat.git] / xonstat / util.py
index b842dc0fd3575d8538bf044ed62e3a65310f9519..2b9e8b0d6884e4f6a045ea4209330fd2c11af076 100755 (executable)
@@ -76,6 +76,7 @@ def strip_colors(qstr=''):
 def html_colors(qstr=''):
     def dec_repl(match):
         return _dec_spans[int(match.group(1))]
+    qstr = qstr.replace('^^', '^')
     html = _dec_colors.sub(dec_repl, qstr)
     html = _hex_colors.sub(r"<span style='color:#\1\1\2\2\3\3'>", html)
     return html + "</span>" * len(_all_colors.findall(qstr))