From: Ant Zucaro Date: Thu, 15 Dec 2011 01:52:56 +0000 (-0500) Subject: Replace ^^ with ^. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7bec77b7b89c388d3fe97efcdc4c8c8a0aa42894;p=xonotic%2Fxonstat.git Replace ^^ with ^. --- diff --git a/xonstat/util.py b/xonstat/util.py index b842dc0..2b9e8b0 100755 --- a/xonstat/util.py +++ b/xonstat/util.py @@ -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"", html) return html + "" * len(_all_colors.findall(qstr))