diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-03-10 16:52:51 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-03-10 16:52:51 +0900 |
commit | 4bac6b56d035e4ae4d4bae073e85c2d34e4458db (patch) | |
tree | bcc91f41738e5db7e50df10ebbe7b1e50a91bbc5 /tests/test_build_latex.py | |
parent | 63c05f2b6d7c5408978bafe8238913d4dd6637b2 (diff) | |
parent | 6ef08a42df4534dbb2664d49dc10a16f6df2acb2 (diff) | |
download | sphinx-git-4bac6b56d035e4ae4d4bae073e85c2d34e4458db.tar.gz |
Merge branch '1.8' into 2.0
Diffstat (limited to 'tests/test_build_latex.py')
-rw-r--r-- | tests/test_build_latex.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index 7772c9faa..58eaf90f8 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -1409,3 +1409,13 @@ def test_includegraphics_oversized(app, status, warning): print(status.getvalue()) print(warning.getvalue()) compile_latex_document(app) + + +@pytest.mark.sphinx('latex', testroot='index_on_title') +def test_index_on_title(app, status, warning): + app.builder.build_all() + result = (app.outdir / 'Python.tex').text(encoding='utf8') + assert ('\\chapter{Test for index in top level title}\n' + '\\label{\\detokenize{contents:test-for-index-in-top-level-title}}' + '\\index{index@\\spxentry{index}}\n' + in result) |