mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Really fix IndexError from #424.
This commit is contained in:
parent
5d3ccf7a8e
commit
e4354a1045
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user