mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #3080: texinfo: multiline rubric is broken
This commit is contained in:
7
tests/roots/test-markup-rubric/conf.py
Normal file
7
tests/roots/test-markup-rubric/conf.py
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
master_doc = 'index'
|
||||
|
||||
latex_documents = [
|
||||
(master_doc, 'test.tex', 'The basic Sphinx documentation for testing', 'Sphinx', 'report')
|
||||
]
|
||||
7
tests/roots/test-markup-rubric/index.rst
Normal file
7
tests/roots/test-markup-rubric/index.rst
Normal file
@@ -0,0 +1,7 @@
|
||||
test-markup-rubric
|
||||
===================
|
||||
|
||||
.. rubric:: This is a rubric
|
||||
|
||||
.. rubric:: This is
|
||||
a multiline rubric
|
||||
@@ -72,3 +72,12 @@ def test_texinfo(app, status, warning):
|
||||
assert False, 'makeinfo exited with return code %s' % retcode
|
||||
finally:
|
||||
os.chdir(cwd)
|
||||
|
||||
|
||||
@pytest.mark.sphinx('texinfo', testroot='markup-rubric')
|
||||
def test_texinfo_rubric(app, status, warning):
|
||||
app.build()
|
||||
|
||||
output = (app.outdir / 'python.texi').text()
|
||||
assert '@heading This is a rubric' in output
|
||||
assert '@heading This is a multiline rubric' in output
|
||||
|
||||
Reference in New Issue
Block a user