Really fix IndexError from #424.

This commit is contained in:
Georg Brandl 2010-06-13 19:42:50 +02:00
parent 5d3ccf7a8e
commit e4354a1045

View File

@ -104,7 +104,7 @@ def collect_pages(app):
# now that we have code lines (starting at index 1), insert anchors for
# the collected tags (HACK: this only works if the tag boundaries are
# properly nested!)
maxindex = len(lines)
maxindex = len(lines) - 1
for name, docname in used.iteritems():
type, start, end = tags[name]
backlink = urito(pagename, docname) + '#' + modname + '.' + name