summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-07-26 11:10:09 +0200
committerlouiz’ <louiz@louiz.org>2016-07-26 11:12:37 +0200
commit15bef8d7521dae6d23e3fa251132395919010208 (patch)
tree57f071c77adb20f5bc7bf774109cbe897d69b7ca
parent8634b5ea66cd8fb305d41a2680c66a7d4fcde73c (diff)
downloadpoezio-15bef8d7521dae6d23e3fa251132395919010208.tar.gz
poezio-15bef8d7521dae6d23e3fa251132395919010208.tar.bz2
poezio-15bef8d7521dae6d23e3fa251132395919010208.tar.xz
poezio-15bef8d7521dae6d23e3fa251132395919010208.zip
Make sure the color values are integers, in xhtml.py
-rw-r--r--poezio/xhtml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/xhtml.py b/poezio/xhtml.py
index ef2334fb..52fbc773 100644
--- a/poezio/xhtml.py
+++ b/poezio/xhtml.py
@@ -229,7 +229,7 @@ def ncurses_color_to_html(color):
else:
color -= 232
r = g = b = color / 24 * 6
- return '#%02X%02X%02X' % (r*256/6, g*256/6, b*256/6)
+ return '#%02X%02X%02X' % (int(r*256/6), int(g*256/6), int(b*256/6))
def parse_css(css):
def get_color(value):