From 6434d5c03e4a9fd595d56792b7ded48bc10f83c3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 23 Dec 2008 18:38:54 +0900 Subject: [PATCH] don't collapse multiple spaces --- anki/utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/anki/utils.py b/anki/utils.py index 28607a821..39b3a37ef 100644 --- a/anki/utils.py +++ b/anki/utils.py @@ -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)