diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-03-30 04:48:02 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-03-30 04:48:02 +0200 |
commit | eac38e03161bdc681ad09719c937aa3463703dbe (patch) | |
tree | e068cffb273bd3d55c90e5fbe9a56439d163fb17 /src | |
parent | 92e63829a699ec68e7dcc2185fb7393255342dd2 (diff) | |
download | poezio-eac38e03161bdc681ad09719c937aa3463703dbe.tar.gz poezio-eac38e03161bdc681ad09719c937aa3463703dbe.tar.bz2 poezio-eac38e03161bdc681ad09719c937aa3463703dbe.tar.xz poezio-eac38e03161bdc681ad09719c937aa3463703dbe.zip |
Fix the generated xhtml: span was closed too often at the end
Diffstat (limited to 'src')
-rw-r--r-- | src/xhtml.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xhtml.py b/src/xhtml.py index aa2643f5..25d23bf9 100644 --- a/src/xhtml.py +++ b/src/xhtml.py @@ -101,8 +101,9 @@ def poezio_colors_to_html(string): if number in number_to_color_names: if 'span' in opened_elements: res += '</span>' + else: + opened_elements.append('span') res += "<span style='color: %s'>" % (number_to_color_names[number]) - opened_elements.append('span') next_attr_char = string.find('\x19') res += string for elem in opened_elements[::-1]: |