diff --git a/anki/utils.py b/anki/utils.py index 7c3488d62..53c646422 100644 --- a/anki/utils.py +++ b/anki/utils.py @@ -157,6 +157,8 @@ def tidyHTML(html): html = re.sub(u'

(.*?)

', u'\\1
', html) html = re.sub(u'
$', u'', html) html = re.sub(u"^
(.*)
$", u"\\1", html) + # this is being added by qt's html editor, and leads to unwanted spaces + html = re.sub(u"^

(.*?)

$", u'\\1', html) return html def entsToTxt(html):