diff options
| author | Georg Brandl <georg@python.org> | 2010-06-13 19:42:50 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-06-13 19:42:50 +0200 |
| commit | 79d08ec16241d7e88147da424d5ef621cb50f426 (patch) | |
| tree | bdcb2b86434caae59a4c1bf21b4718a9cc3e6188 /sphinx/ext/viewcode.py | |
| parent | 7860dd038669806c632212c277e66dabaf874007 (diff) | |
| download | sphinx-79d08ec16241d7e88147da424d5ef621cb50f426.tar.gz | |
Really fix IndexError from #424.
Diffstat (limited to 'sphinx/ext/viewcode.py')
| -rw-r--r-- | sphinx/ext/viewcode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/viewcode.py b/sphinx/ext/viewcode.py index d79df22e..81881beb 100644 --- a/sphinx/ext/viewcode.py +++ b/sphinx/ext/viewcode.py @@ -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 |
