]> git.sommitrealweird.co.uk Git - rss2maildir.git/commitdiff
fix silly regression on pre formatting
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Sun, 2 Mar 2008 01:12:39 +0000 (01:12 +0000)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Sun, 2 Mar 2008 01:12:39 +0000 (01:12 +0000)
rss2maildir.py

index b0bc441d09b23c56807d993ff98c9f9c09372dde..e8883b1200dd5fd80d58ec890a7cbb733d15877d 100755 (executable)
@@ -286,7 +286,7 @@ class HTML2Text(HTMLParser):
                         paragraph, self.textwidth - self.indentlevel))
         elif tag_thats_done == "pre":
             self.text = self.text + unicode( \
-                " ".join(self.curdata.encode("utf-8").split()), "utf-8")
+                self.curdata.encode("utf-8"), "utf-8")
         elif tag_thats_done == u'blockquote':
             quote = unicode( \
                 " ".join(self.curdata.encode("utf-8").strip().split()), \