Fix typo/thinko in handle_startendtag
authorBrett Parker <iDunno@sommitrealweird.co.uk>
Thu, 10 Jan 2008 18:08:23 +0000 (18:08 +0000)
committerBrett Parker <iDunno@sommitrealweird.co.uk>
Thu, 10 Jan 2008 18:08:23 +0000 (18:08 +0000)
rss2maildir.py

index 04f20ce10661b74156dd8f69ecc0f610761256dd..4421811152a18c37b587f9e46e7568e28fb47760 100755 (executable)
@@ -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: