don't remove leading/trailing whitespace

This commit is contained in:
Damien Elmes 2008-12-23 18:39:14 +09:00
parent 6434d5c03e
commit feb0acf52c

View file

@ -131,9 +131,6 @@ def tidyHTML(html):
html = re.sub(u'<p( style=.+?)>(.*?)</p>', u'<span\\1>\\2</span><br>', html)
html = re.sub(u'<p>(.*?)</p>', u'\\1<br>', html)
html = re.sub(u'<br>$', u'', html)
# remove leading or trailing whitespace
html = re.sub(u'^ +', u'', html)
html = re.sub(u' +$', u'', html)
return html
# IDs