Fix numbering section at singlehtml mode does not work for nested toctree

This commit is contained in:
tk0miya
2014-08-18 22:06:30 +09:00
parent ba072ab903
commit 14107fd5de
4 changed files with 15 additions and 6 deletions

View File

@@ -395,10 +395,12 @@ def test_tocdepth(app):
'bar.html': [
(".//h1", '2. Bar', True),
(".//h2", '2.1. Bar A', True),
(".//h3", '2.1.1. Bar A1', True),
(".//h2", '2.2. Bar B', True),
(".//h3", '2.2.1. Bar B1', True),
],
'baz.html': [
(".//h1", '2.1.1. Baz A', True),
],
}
for fname, paths in iteritems(expects):
@@ -438,9 +440,11 @@ def test_tocdepth_singlehtml(app):
# bar.rst
(".//h2", '2. Bar', True),
(".//h3", '2.1. Bar A', True),
(".//h4", '2.1.1. Bar A1', True),
(".//h3", '2.2. Bar B', True),
(".//h4", '2.2.1. Bar B1', True),
# baz.rst
(".//h4", '2.1.1. Baz A', True),
],
}