Fix #3080: texinfo: multiline rubric is broken

This commit is contained in:
Takeshi KOMIYA
2018-11-08 16:32:23 +09:00
parent 63daf8c6e6
commit 84f781252f
5 changed files with 26 additions and 0 deletions

View File

@@ -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