summaryrefslogtreecommitdiff
path: root/sphinx/ext/jsmath.py
diff options
context:
space:
mode:
authorOliver Jahn <jahn@mit.edu>2017-12-16 09:37:38 -0500
committerOliver Jahn <jahn@mit.edu>2017-12-16 10:37:02 -0500
commit53a84de822c94b14a10cb5f416668b2834983c12 (patch)
tree375049b44de48d994873ddb407e85564e2ef0e86 /sphinx/ext/jsmath.py
parent04f2929f59b49fefbc6804088089994567b67ad9 (diff)
downloadsphinx-git-53a84de822c94b14a10cb5f416668b2834983c12.tar.gz
make math_numfig work with singlehtml writer
Diffstat (limited to 'sphinx/ext/jsmath.py')
-rw-r--r--sphinx/ext/jsmath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/jsmath.py b/sphinx/ext/jsmath.py
index 978e3f3d6..3c31b0a02 100644
--- a/sphinx/ext/jsmath.py
+++ b/sphinx/ext/jsmath.py
@@ -36,7 +36,7 @@ def html_visit_displaymath(self, node):
if i == 0:
# necessary to e.g. set the id property correctly
if node['number']:
- number = get_node_equation_number(self.builder.env, node)
+ number = get_node_equation_number(self, node)
self.body.append('<span class="eqno">(%s)' % number)
self.add_permalink_ref(node, _('Permalink to this equation'))
self.body.append('</span>')