]> git.sommitrealweird.co.uk Git - rss2maildir.git/blobdiff - rss2maildir.py
* Add unittest for unordered list
[rss2maildir.git] / rss2maildir.py
index 99735a70a8dd93957741b3c1c3a66e1cd3779171..80f22d57d6f6852ed9efbf1289b03590f9845f8f 100755 (executable)
@@ -249,6 +249,8 @@ class HTML2Text(HTMLParser):
         data = self.text
         if self.inparagraph:
             data = data + "\n".join(textwrap.wrap(self.currentparagraph, 70))
+        if data[-1] != '\n':
+            data = data + '\n'
         return data
 
 def open_url(method, url):