From: Brett Parker Date: Thu, 10 Jan 2008 18:08:23 +0000 (+0000) Subject: Fix typo/thinko in handle_startendtag X-Git-Url: https://git.sommitrealweird.co.uk/rss2maildir.git/commitdiff_plain/95250ed0bbd4f1778709f8482aacaac6639af2d8?ds=inline;hp=ad581cfc9d13b2d659262062c4ad9f743171cbb9 Fix typo/thinko in handle_startendtag --- diff --git a/rss2maildir.py b/rss2maildir.py index 04f20ce..4421811 100755 --- a/rss2maildir.py +++ b/rss2maildir.py @@ -151,9 +151,9 @@ class HTML2Text(HTMLParser): def handle_startendtag(self, tag, attrs): if tag.lower() == u'br': - self.tags.append(u'br') + self.opentags.append(u'br') self.handle_curdata() # just handle the data, don't do anything else - self.tags.pop() + self.opentags.pop() def handle_curdata(self): if len(self.opentags) == 0: