summaryrefslogtreecommitdiff
path: root/src/xhtml.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-04 11:41:19 +0100
committermathieui <mathieui@mathieui.net>2013-03-04 11:41:19 +0100
commitf7204ab0a37971e77c3601f7167db79d805a2428 (patch)
tree3bc2da5ba32d086d4128663435840f2f2db1e668 /src/xhtml.py
parent1e9e2112f73fc3f2e6552158e57d6a623749eb75 (diff)
downloadpoezio-f7204ab0a37971e77c3601f7167db79d805a2428.tar.gz
poezio-f7204ab0a37971e77c3601f7167db79d805a2428.tar.bz2
poezio-f7204ab0a37971e77c3601f7167db79d805a2428.tar.xz
poezio-f7204ab0a37971e77c3601f7167db79d805a2428.zip
Fix /xhtml
Diffstat (limited to 'src/xhtml.py')
-rw-r--r--src/xhtml.py2
1 files changed, 2 insertions, 0 deletions
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] == '#':