pylookup: Clear self.tag on endtag

This commit is contained in:
Shitikanth Kashyap 2017-11-13 22:13:07 -05:00 committed by syl20bnr
parent 480c8531b3
commit 6e0d38f3ea
1 changed files with 1 additions and 0 deletions

View File

@ -155,6 +155,7 @@ class IndexProcessor(HTMLParser):
self.url = join(self.dirn, attrs['href'])
def handle_endtag(self, tag):
self.tag = None
if tag in ['dd', 'dl', 'ul']:
self.level -= 1
elif tag in ['dt', 'li']: