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'])
|
self.url = join(self.dirn, attrs['href'])
|
||||||
|
|
||||||
def handle_endtag(self, tag):
|
def handle_endtag(self, tag):
|
||||||
|
self.tag = None
|
||||||
if tag in ['dd', 'dl', 'ul']:
|
if tag in ['dd', 'dl', 'ul']:
|
||||||
self.level -= 1
|
self.level -= 1
|
||||||
elif tag in ['dt', 'li']:
|
elif tag in ['dt', 'li']:
|
||||||
|
|
Loading…
Reference in a new issue