diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xhtml.py | 2 |
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] == '#': |