From f92907698bb8e9edcdfc09b557c5e1ef2fbc22c1 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Mon, 3 Mar 2008 13:51:15 +0000 Subject: [PATCH] Another blockquote fix --- rss2maildir.py | 2 +- tests/expected/blockquote.txt | 4 +++- tests/html/blockquote.html | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) 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.
-- 2.30.2