diff options
author | shimizukawa <shimizukawa@gmail.com> | 2014-10-06 07:10:52 +0900 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2014-10-06 07:10:52 +0900 |
commit | a05d4b0f6f9928c5760130dfdf52b3e59cc50e76 (patch) | |
tree | 26601eecad6c4ae48f277e09125d1ae6deceb750 /tests | |
parent | 5565cc51b0ae17dd3219e3ab4d21fafdd133f620 (diff) | |
download | sphinx-a05d4b0f6f9928c5760130dfdf52b3e59cc50e76.tar.gz |
Fix test for previous change.
Fix. <caption> node should not include <paragraph> block element as a result of nested_parse.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_directive_code.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py index 0c2cead6..3f0a6d3f 100644 --- a/tests/test_directive_code.py +++ b/tests/test_directive_code.py @@ -61,7 +61,7 @@ def test_code_block_caption_html(app, status, warning): def test_code_block_caption_latex(app, status, warning): app.builder.build_all() latex = (app.outdir / 'Python.tex').text() - caption = '\\caption{\ncaption \\emph{test} rb\n}' + caption = '\\caption{caption \\emph{test} rb}' assert caption in latex @@ -107,5 +107,5 @@ def test_literalinclude_caption_html(app, status, warning): def test_literalinclude_caption_latex(app, status, warning): app.builder.build('index') latex = (app.outdir / 'Python.tex').text() - caption = '\\caption{\ncaption \\textbf{test} py\n}' + caption = '\\caption{caption \\textbf{test} py}' assert caption in latex |