Fix the generated xhtml: span was closed too often at the end
This commit is contained in:
parent
92e63829a6
commit
eac38e0316
1 changed files with 2 additions and 1 deletions
|
@ -101,8 +101,9 @@ def poezio_colors_to_html(string):
|
||||||
if number in number_to_color_names:
|
if number in number_to_color_names:
|
||||||
if 'span' in opened_elements:
|
if 'span' in opened_elements:
|
||||||
res += '</span>'
|
res += '</span>'
|
||||||
res += "<span style='color: %s'>" % (number_to_color_names[number])
|
else:
|
||||||
opened_elements.append('span')
|
opened_elements.append('span')
|
||||||
|
res += "<span style='color: %s'>" % (number_to_color_names[number])
|
||||||
next_attr_char = string.find('\x19')
|
next_attr_char = string.find('\x19')
|
||||||
res += string
|
res += string
|
||||||
for elem in opened_elements[::-1]:
|
for elem in opened_elements[::-1]:
|
||||||
|
|
Loading…
Reference in a new issue