From f7204ab0a37971e77c3601f7167db79d805a2428 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 4 Mar 2013 11:41:19 +0100 Subject: Fix /xhtml --- src/xhtml.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xhtml.py b/src/xhtml.py index ce53029e..62295dc6 100644 --- a/src/xhtml.py +++ b/src/xhtml.py @@ -227,6 +227,8 @@ def ncurses_color_to_html(color): return '#%02X%02X%02X' % (r*256/6, g*256/6, b*256/6) def xhtml_to_poezio_colors(xml): + if isinstance(xml, str): + xml = ET.fromstring(xml) def parse_css(css): def get_color(value): if value[0] == '#': -- cgit v1.2.3