summaryrefslogtreecommitdiff
path: root/sphinx/ext/mathbase.py
diff options
context:
space:
mode:
authorJean-François B <jfbu@free.fr>2018-03-15 10:29:10 +0100
committerGitHub <noreply@github.com>2018-03-15 10:29:10 +0100
commite1e46cdf8be9fbede7fd1da3240107d00921e850 (patch)
treee1b3b85b614c2e74d7b6171785c797b09e41910e /sphinx/ext/mathbase.py
parent613657981bf2edfc1567499384b21f8e85c4e05d (diff)
parentc4e12ff01231d468682264b5d856aa78c39eeb19 (diff)
downloadsphinx-git-e1e46cdf8be9fbede7fd1da3240107d00921e850.tar.gz
Merge pull request #4729 from jfbu/latex_equation_nophantom
Fix vertical space before equation in latex (closes: #4574)
Diffstat (limited to 'sphinx/ext/mathbase.py')
-rw-r--r--sphinx/ext/mathbase.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/ext/mathbase.py b/sphinx/ext/mathbase.py
index 24c10df3c..3cc734537 100644
--- a/sphinx/ext/mathbase.py
+++ b/sphinx/ext/mathbase.py
@@ -85,6 +85,7 @@ class MathDomain(Domain):
newnode['target'] = target
return newnode
else:
+ # TODO: perhaps use rather a sphinx-core provided prefix here?
node_id = make_id('equation-%s' % target)
if env.config.math_numfig and env.config.numfig:
if docname in env.toc_fignumbers: