pylookup: Set one_entry to false after each element

Fix for bug: extraneous links registered for last entry
in index. For instance, for python documentation index,
all links in footer would get attached to `zlib`.
This commit is contained in:
Shitikanth Kashyap 2017-11-13 11:45:10 -05:00 committed by syl20bnr
parent 01e588c5f0
commit a3d8df9244

View file

@ -157,6 +157,8 @@ class IndexProcessor(HTMLParser):
def handle_endtag(self, tag):
if tag == 'dd':
self.list_entry = False
if tag == 'dt':
self.one_entry = False
def handle_data(self, data):
if self.tag == 'a':