mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix test for previous change.
Fix. <caption> node should not include <paragraph> block element as a result of nested_parse.
This commit is contained in:
parent
655866d2cc
commit
b6b6f8ad79
@ -61,7 +61,7 @@ def test_code_block_caption_html(app, status, warning):
|
|||||||
def test_code_block_caption_latex(app, status, warning):
|
def test_code_block_caption_latex(app, status, warning):
|
||||||
app.builder.build_all()
|
app.builder.build_all()
|
||||||
latex = (app.outdir / 'Python.tex').text()
|
latex = (app.outdir / 'Python.tex').text()
|
||||||
caption = '\\caption{\ncaption \\emph{test} rb\n}'
|
caption = '\\caption{caption \\emph{test} rb}'
|
||||||
assert caption in latex
|
assert caption in latex
|
||||||
|
|
||||||
|
|
||||||
@ -107,5 +107,5 @@ def test_literalinclude_caption_html(app, status, warning):
|
|||||||
def test_literalinclude_caption_latex(app, status, warning):
|
def test_literalinclude_caption_latex(app, status, warning):
|
||||||
app.builder.build('index')
|
app.builder.build('index')
|
||||||
latex = (app.outdir / 'Python.tex').text()
|
latex = (app.outdir / 'Python.tex').text()
|
||||||
caption = '\\caption{\ncaption \\textbf{test} py\n}'
|
caption = '\\caption{caption \\textbf{test} py}'
|
||||||
assert caption in latex
|
assert caption in latex
|
||||||
|
Loading…
Reference in New Issue
Block a user