add zero width space at end of span

This commit is contained in:
Damien Elmes 2008-12-10 16:48:24 +09:00
parent 8282d3e7de
commit 8ea3117d67

View file

@ -184,4 +184,6 @@ def mungeQA(deck, txt):
create=True), match).encode("utf-8")), "utf-8")
return 'img src="%s"' % src
txt = re.sub('img src="(.*?)"', quote, txt)
# hack to fix thai presentation issues
txt = txt.replace("</span>", "&#8203;</span>")
return txt