diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-03-15 02:02:21 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-03-15 02:02:21 +0900 |
commit | 4cebc4399ca2cd26080695b136703f8c050497b8 (patch) | |
tree | 07e4bce9200454c96c269a42bcfa7286c1870d8f /sphinx/ext/viewcode.py | |
parent | 2994c125132b6beb73c51de4cc224a2b1d55f741 (diff) | |
parent | 6694981dd6939ab876b27d4e20a8128561c307ac (diff) | |
download | sphinx-git-4cebc4399ca2cd26080695b136703f8c050497b8.tar.gz |
Merge commit '6694981dd6939ab876b27d4e20a8128561c307ac'
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 673cdf8e8..0836ed56e 100644 --- a/sphinx/ext/viewcode.py +++ b/sphinx/ext/viewcode.py @@ -178,7 +178,7 @@ def collect_pages(app): '<div class="viewcode-block" id="%s"><a class="viewcode-back" ' 'href="%s">%s</a>' % (name, backlink, _('[docs]')) + lines[start]) - lines[min(end - 1, maxindex)] += '</div>' + lines[min(end, maxindex)] += '</div>' # try to find parents (for submodules) parents = [] parent = modname |