Another blockquote fix
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Mon, 3 Mar 2008 13:51:15 +0000 (13:51 +0000)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Mon, 3 Mar 2008 13:51:15 +0000 (13:51 +0000)
rss2maildir.py
tests/expected/blockquote.txt
tests/html/blockquote.html

index dd5b112e5ac12a889f08926cbb2a05148e9b0a0c..47ba9dc125687576f8759aaeebe0a2e63cca43f4 100755 (executable)
@@ -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 \
index e37148e2e35ed1f39fc5dd495b2b1e53f6ee2ccf..9df36ab4a87cc8695fe8b707a5c3255766474e52 100644 (file)
@@ -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.
index 46320e0c7cc54cdf67f44650e52b7dd14eb14650..4d594246451661751f279cfc3a8bb042f52c5b0e 100644 (file)
@@ -1,5 +1,5 @@
 <h1>A block quote test</h1>
 <p>Earlier someone said:</p>
 <blockquote>
-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.
 </blockquote>