diff options
| author | tk0miya <i.tkomiya@gmail.com> | 2014-09-19 11:08:07 +0900 |
|---|---|---|
| committer | tk0miya <i.tkomiya@gmail.com> | 2014-09-19 11:08:07 +0900 |
| commit | 447c8c1d377374e59f3a2a2549fa400de486f4f8 (patch) | |
| tree | d7bfa7bb0650944ed007faec0be0a8c262c0b854 /tests/test_directive_code.py | |
| parent | 007a15454fe790cf17ebe0934c03b03055b1375a (diff) | |
| download | sphinx-git-447c8c1d377374e59f3a2a2549fa400de486f4f8.tar.gz | |
Wrap float environment on writing literal_block to latex
Diffstat (limited to 'tests/test_directive_code.py')
| -rw-r--r-- | tests/test_directive_code.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py index 4dbdff881..f2f64970b 100644 --- a/tests/test_directive_code.py +++ b/tests/test_directive_code.py @@ -93,8 +93,7 @@ def test_code_block_caption_html(app): def test_code_block_caption_latex(app):
app.builder.build('index')
latex = (app.outdir / 'Python.tex').text()
- caption = ('{\\colorbox[rgb]{0.9,0.9,0.9}{\\makebox[\\textwidth][l]'
- '{\\small\\texttt{caption-test.rb}}}}')
+ caption = '\\caption{caption-test.rb}'
assert caption in latex
@@ -168,6 +167,5 @@ def test_literalinclude_caption_html(app): def test_literalinclude_caption_latex(app):
app.builder.build('index')
latex = (app.outdir / 'Python.tex').text()
- caption = ('{\\colorbox[rgb]{0.9,0.9,0.9}{\\makebox[\\textwidth][l]'
- '{\\small\\texttt{caption-test.py}}}}')
+ caption = '\\caption{caption-test.py}'
assert caption in latex
|
