X-Git-Url: https://git.sommitrealweird.co.uk/rss2maildir.git/blobdiff_plain/30903dc148a14cd0f59fb1e40132092e389aec4b..385c031fd3e0796988b35b1b09c9977f7b0ba04a:/rss2maildir.py diff --git a/rss2maildir.py b/rss2maildir.py index d36b489..dd5b112 100755 --- a/rss2maildir.py +++ b/rss2maildir.py @@ -188,7 +188,7 @@ class HTML2Text(HTMLParser): u'dt', u'dd', u'div', - #u'blockquote', + u'blockquote', ] liststarttags = [ @@ -313,12 +313,11 @@ class HTML2Text(HTMLParser): else: while self.images.has_key(alt): alt = alt + "_" - self.images[alt]["url"] = url + self.images[alt] = {"url": url} self.curdata = self.curdata \ + u'|%s|' %(alt,) else: - self.images[alt] = {} - self.images[alt]["url"] = url + self.images[alt] = {"url": url} self.curdata = self.curdata \ + u'|%s|' %(alt,) else: @@ -412,7 +411,7 @@ class HTML2Text(HTMLParser): if len(self.text) > 0 and self.text[-1] != u'\n': self.text = self.text + u'\n' self.text = self.text \ - + u'> ' \ + + u' ' \ + seperator.join( \ textwrap.wrap( \ quote, \