]> git.sommitrealweird.co.uk Git - rss2maildir.git/blobdiff - rss2maildir.py
Fix typo/thinko in handle_startendtag
[rss2maildir.git] / 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':
 
     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.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:
 
     def handle_curdata(self):
         if len(self.opentags) == 0: