From 15bef8d7521dae6d23e3fa251132395919010208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Tue, 26 Jul 2016 11:10:09 +0200 Subject: Make sure the color values are integers, in xhtml.py --- poezio/xhtml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3