From 7bec77b7b89c388d3fe97efcdc4c8c8a0aa42894 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Wed, 14 Dec 2011 20:52:56 -0500 Subject: [PATCH] Replace ^^ with ^. --- xonstat/util.py | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.39.2