diff options
author | tk0miya <i.tkomiya@gmail.com> | 2014-08-21 09:51:15 +0900 |
---|---|---|
committer | tk0miya <i.tkomiya@gmail.com> | 2014-08-21 09:51:15 +0900 |
commit | b404aa1f02b2c385ecb2ffc4372afb82e1f82dc3 (patch) | |
tree | 5ad9b82ade752477bf5a3f7536cae51310c05d9a | |
parent | 4213aba9ee9ea69a0b13e1f986bd956e8a80c695 (diff) | |
download | sphinx-b404aa1f02b2c385ecb2ffc4372afb82e1f82dc3.tar.gz |
Fix section entries were shown twice if toctree has been put under only directive
-rw-r--r-- | sphinx/environment.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/environment.py b/sphinx/environment.py index 6d2a5f2a..2dfedcd0 100644 --- a/sphinx/environment.py +++ b/sphinx/environment.py @@ -1000,6 +1000,7 @@ class BuildEnvironment: if blist: onlynode += blist.children entries.append(onlynode) + continue if not isinstance(sectionnode, nodes.section): for toctreenode in traverse_in_section(sectionnode, addnodes.toctree): |