From: Brett Parker Date: Mon, 3 Mar 2008 13:51:15 +0000 (+0000) Subject: Another blockquote fix X-Git-Url: https://git.sommitrealweird.co.uk/rss2maildir.git/commitdiff_plain/f92907698bb8e9edcdfc09b557c5e1ef2fbc22c1?ds=inline Another blockquote fix --- diff --git a/rss2maildir.py b/rss2maildir.py index dd5b112..47ba9dc 100755 --- a/rss2maildir.py +++ b/rss2maildir.py @@ -407,7 +407,7 @@ class HTML2Text(HTMLParser): quote = unicode( \ " ".join(self.curdata.encode("utf-8").strip().split()), \ "utf-8") - seperator = u'\n' + u' ' * self.indentlevel + u'> ' + seperator = u'\n' + u' ' * self.indentlevel + u' ' if len(self.text) > 0 and self.text[-1] != u'\n': self.text = self.text + u'\n' self.text = self.text \ diff --git a/tests/expected/blockquote.txt b/tests/expected/blockquote.txt index e37148e..9df36ab 100644 --- a/tests/expected/blockquote.txt +++ b/tests/expected/blockquote.txt @@ -3,4 +3,6 @@ A block quote test Earlier someone said: - The world isn't flat after all, it's actually round, so there. + The world isn't flat after all, it's actually round, so there. This + needs to wrap so that the testing is actually more accurate. So we + put some more randomness in here. It's fun. diff --git a/tests/html/blockquote.html b/tests/html/blockquote.html index 46320e0..4d59424 100644 --- a/tests/html/blockquote.html +++ b/tests/html/blockquote.html @@ -1,5 +1,5 @@

A block quote test

Earlier someone said:

-The world isn't flat after all, it's actually round, so there. +The world isn't flat after all, it's actually round, so there. This needs to wrap so that the testing is actually more accurate. So we put some more randomness in here. It's fun.