mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
don't collapse multiple spaces
This commit is contained in:
parent
3b3fef4ebc
commit
6434d5c03e
1 changed files with 0 additions and 2 deletions
|
@ -124,8 +124,6 @@ def tidyHTML(html):
|
|||
"margin-right:\d+px; -qt-block-indent:0; "
|
||||
"text-indent:0px;", u"", html)
|
||||
html = re.sub(u"-qt-paragraph-type:empty;", u"", html)
|
||||
# collapse multiple spaces into one
|
||||
html = re.sub(u" +", u" ", html)
|
||||
# strip leading space in style statements, and remove if no contents
|
||||
html = re.sub(u'style=" ', u'style="', html)
|
||||
html = re.sub(u' style=""', u"", html)
|
||||
|
|
Loading…
Reference in a new issue