don't collapse multiple spaces

This commit is contained in:
Damien Elmes 2008-12-23 18:38:54 +09:00
parent 3b3fef4ebc
commit 6434d5c03e

View file

@ -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)