mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 17:02:12 -05:00
Fix #5906: LaTeX Builder is not initialized correctly on test_markup
This commit is contained in:
1 parent
064c80336f
commit
66228fb60f
1 file changed
+1
-2
@@ -90,8 +90,7 @@ def verify_re_latex(app, parse):
|
||||
document = parse(rst)
|
||||
app.builder = LaTeXBuilder(app)
|
||||
app.builder.set_environment(app.env)
|
||||
app.builder.init_context()
|
||||
app.builder.init_babel()
|
||||
app.builder.init()
|
||||
latex_translator = ForgivingLaTeXTranslator(document, app.builder)
|
||||
latex_translator.first_document = -1 # don't write \begin{document}
|
||||
document.walkabout(latex_translator)
|
||||
|
||||
Reference in new issue
Block a user