mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
strip qt's rtl marker
This commit is contained in:
parent
31df2fac01
commit
29a53b268f
1 changed files with 2 additions and 0 deletions
|
@ -157,6 +157,8 @@ def tidyHTML(html):
|
|||
html = re.sub(u'<p>(.*?)</p>', u'\\1<br>', html)
|
||||
html = re.sub(u'<br>$', u'', html)
|
||||
html = re.sub(u"^<table><tr><td style=\"border: none;\">(.*)<br></td></tr></table>$", u"\\1", html)
|
||||
# this is being added by qt's html editor, and leads to unwanted spaces
|
||||
html = re.sub(u"^<p dir='rtl'>(.*?)</p>$", u'\\1', html)
|
||||
return html
|
||||
|
||||
def entsToTxt(html):
|
||||
|
|
Loading…
Reference in a new issue