##// END OF EJS Templates
Fix doc build with recent sphinx versions
Darren Dale -
Show More
@@ -5,9 +5,15 b''
5 5
6 6 from docutils.nodes import Body, Element
7 7 from docutils.writers.html4css1 import HTMLTranslator
8 from sphinx.latexwriter import LaTeXTranslator
9 8 from docutils.parsers.rst import directives
10 9
10 # The sphinx API has changed, so we try both the old and new import forms
11 try:
12 from sphinx.latexwriter import LaTeXTranslator
13 except ImportError:
14 from sphinx.writers.latex import LaTeXTranslator
15
16
11 17 class html_only(Body, Element):
12 18 pass
13 19
General Comments 0
You need to be logged in to leave comments. Login now