latex: keep original Verbatim under same name, use SphinxVerbatim for own

This commit is contained in:
jfbu
2016-06-10 18:28:23 +02:00
parent de070a3ca8
commit f9880bfcc8
5 changed files with 21 additions and 18 deletions

View File

@@ -228,11 +228,11 @@ def test_literalinclude_file_whole_of_emptyline(app, status, warning):
app.builder.build_all()
latex = (app.outdir / 'Python.tex').text(encoding='utf-8').replace('\r\n', '\n')
includes = (
'\\begin{Verbatim}[commandchars=\\\\\\{\\},numbers=left,firstnumber=1,stepnumber=1]\n'
'\\begin{SphinxVerbatim}[commandchars=\\\\\\{\\},numbers=left,firstnumber=1,stepnumber=1]\n'
'\n'
'\n'
'\n'
'\\end{Verbatim}\n')
'\\end{SphinxVerbatim}\n')
assert includes in latex