##// END OF EJS Templates
fix docutils math import error on newer version
Matthias BUSSONNIER -
Show More
@@ -15,9 +15,14 b' import urllib'
15 import docutils
15 import docutils
16 from docutils import frontend, nodes, utils, writers, languages, io
16 from docutils import frontend, nodes, utils, writers, languages, io
17 from docutils.transforms import writer_aux
17 from docutils.transforms import writer_aux
18 from docutils.math import unichar2tex, pick_math_environment
18 try:
19 from docutils.math.latex2mathml import parse_latex_math
19 from docutils.math import unichar2tex, pick_math_environment
20 from docutils.math.math2html import math2html
20 from docutils.math.latex2mathml import parse_latex_math
21 from docutils.math.math2html import math2html
22 except ImportError:
23 from docutils.utils.math import unichar2tex, pick_math_environment
24 from docutils.utils.math.latex2mathml import parse_latex_math
25 from docutils.utils.math.math2html import math2html
21
26
22 try:
27 try:
23 from docutils.utils.error_reporting import SafeString
28 from docutils.utils.error_reporting import SafeString
General Comments 0
You need to be logged in to leave comments. Login now