diff options
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..f02394cf1 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) |