summaryrefslogtreecommitdiff
path: root/src/xhtml.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-03-31 00:36:15 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-03-31 00:36:15 +0200
commit63e4833b0934c995ac46fc33f02fad7cc652b454 (patch)
tree9a8cc573cf0fb2b1c3f5828874785f7ccec1efac /src/xhtml.py
parenteac38e03161bdc681ad09719c937aa3463703dbe (diff)
downloadpoezio-63e4833b0934c995ac46fc33f02fad7cc652b454.tar.gz
poezio-63e4833b0934c995ac46fc33f02fad7cc652b454.tar.bz2
poezio-63e4833b0934c995ac46fc33f02fad7cc652b454.tar.xz
poezio-63e4833b0934c995ac46fc33f02fad7cc652b454.zip
Fix a crash on normal messages, and add colors to information messages
Diffstat (limited to 'src/xhtml.py')
-rw-r--r--src/xhtml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xhtml.py b/src/xhtml.py
index 25d23bf9..55582066 100644
--- a/src/xhtml.py
+++ b/src/xhtml.py
@@ -133,7 +133,7 @@ def shell_colors_to_poezio_colors(string):
elif num == 1:
res += '\x19b'
elif num >= 31 and num <= 37:
- res += '\x19%s' % (num-30,)
+ res += '\x19%d' % (num-30,)
return res
def remove_elinks_indent(string):
lines = string.split('\n')