mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #5906: LaTeX Builder is not initialized correctly on test_markup
This commit is contained in:
parent
064c80336f
commit
66228fb60f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user