summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sphinx/ext/imgmath.py2
-rw-r--r--sphinx/ext/jsmath.py2
-rw-r--r--sphinx/ext/mathjax.py2
-rw-r--r--tests/test_ext_math.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/ext/imgmath.py b/sphinx/ext/imgmath.py
index 927429086..e5b8b26c5 100644
--- a/sphinx/ext/imgmath.py
+++ b/sphinx/ext/imgmath.py
@@ -255,7 +255,7 @@ def html_visit_displaymath(self, node):
self.body.append('<p>')
if node['number']:
self.body.append('<span class="eqno">(%s)' % node['number'])
- self.add_permalink_ref(node, _('Permalink to this code'))
+ self.add_permalink_ref(node, _('Permalink to this equation'))
self.body.append('</span>')
if fname is None:
# something failed -- use text-only as a bad substitute
diff --git a/sphinx/ext/jsmath.py b/sphinx/ext/jsmath.py
index 9fb790e1b..9981ffd3a 100644
--- a/sphinx/ext/jsmath.py
+++ b/sphinx/ext/jsmath.py
@@ -36,7 +36,7 @@ def html_visit_displaymath(self, node):
# necessary to e.g. set the id property correctly
if node['number']:
self.body.append('<span class="eqno">(%s)' % node['number'])
- self.add_permalink_ref(node, _('Permalink to this code'))
+ self.add_permalink_ref(node, _('Permalink to this equation'))
self.body.append('</span>')
self.body.append(self.starttag(node, 'div', CLASS='math'))
else:
diff --git a/sphinx/ext/mathjax.py b/sphinx/ext/mathjax.py
index 420e2b312..2f414f4e7 100644
--- a/sphinx/ext/mathjax.py
+++ b/sphinx/ext/mathjax.py
@@ -37,7 +37,7 @@ def html_visit_displaymath(self, node):
# necessary to e.g. set the id property correctly
if node['number']:
self.body.append('<span class="eqno">(%s)' % node['number'])
- self.add_permalink_ref(node, _('Permalink to this code'))
+ self.add_permalink_ref(node, _('Permalink to this equation'))
self.body.append('</span>')
self.body.append(self.builder.config.mathjax_display[0])
parts = [prt for prt in node['latex'].split('\n\n') if prt.strip()]
diff --git a/tests/test_ext_math.py b/tests/test_ext_math.py
index a73d2a26e..af4b873d7 100644
--- a/tests/test_ext_math.py
+++ b/tests/test_ext_math.py
@@ -23,7 +23,7 @@ def test_jsmath(app, status, warning):
assert '<div class="math">\na^2 + b^2 = c^2</div>' in content
assert '<div class="math">\n\\begin{split}a + 1 &lt; b\\end{split}</div>' in content
assert (u'<span class="eqno">(1)<a class="headerlink" href="#equation-foo" '
- u'title="Permalink to this code">\xb6</a></span>'
+ u'title="Permalink to this equation">\xb6</a></span>'
u'<div class="math" id="equation-foo">\ne^{i\\pi} = 1</div>' in content)
assert ('<span class="eqno">(2)</span><div class="math">\n'
'e^{ix} = \\cos x + i\\sin x</div>' in content)