mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
don't remove leading/trailing whitespace
This commit is contained in:
parent
6434d5c03e
commit
feb0acf52c
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue