diff options
author | shimizukawa <shimizukawa@gmail.com> | 2018-05-25 02:17:19 +0300 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2018-05-25 02:17:19 +0300 |
commit | eacaaed1c7602da9a73aa31caf8addf824070ef2 (patch) | |
tree | f78ed27ad7fb6bc07b0369c0f5f887dcc23a0bae /sphinx/environment/collectors/toctree.py | |
parent | 157619c4e369dace8f4caebc076080d7e66c72e0 (diff) | |
parent | 0d96401c43dda36cc5a7023c1d7fc4b20c23b166 (diff) |
Merge branch 1.7
Diffstat (limited to 'sphinx/environment/collectors/toctree.py')
-rw-r--r-- | sphinx/environment/collectors/toctree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/environment/collectors/toctree.py b/sphinx/environment/collectors/toctree.py index dcbee07f7..3d8c89f43 100644 --- a/sphinx/environment/collectors/toctree.py +++ b/sphinx/environment/collectors/toctree.py @@ -172,10 +172,10 @@ class TocTreeCollector(EnvironmentCollector): number = tuple(numstack) else: number = None - secnums[subnode[0]['anchorname']] = \ - subnode[0]['secnumber'] = number + secnums[subnode[0]['anchorname']] = number + subnode[0]['secnumber'] = list(number) if titlenode: - titlenode['secnumber'] = number + titlenode['secnumber'] = list(number) titlenode = None elif isinstance(subnode, addnodes.toctree): _walk_toctree(subnode, depth) |