pylookup: Clear self.tag on endtag
This commit is contained in:
parent
480c8531b3
commit
6e0d38f3ea
|
@ -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']:
|
||||
|
|
Loading…
Reference in New Issue