summaryrefslogtreecommitdiff
path: root/sphinx/ext/mathbase.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-04-23 01:32:12 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-04-23 01:32:12 +0900
commit985886a7fc14678478a75f63326d13df77ca45cf (patch)
treef87c0f0a54970966edf7dcac3214ab5d57280f4e /sphinx/ext/mathbase.py
parent0db15c92436a3f1331490de0ed3839a8b4d2b35b (diff)
parentb4a6841c466e38e8df636d2d967d1f90221acdb1 (diff)
downloadsphinx-git-985886a7fc14678478a75f63326d13df77ca45cf.tar.gz
Merge branch '1.7'
Diffstat (limited to 'sphinx/ext/mathbase.py')
-rw-r--r--sphinx/ext/mathbase.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sphinx/ext/mathbase.py b/sphinx/ext/mathbase.py
index 4789b117e..68ae40f8a 100644
--- a/sphinx/ext/mathbase.py
+++ b/sphinx/ext/mathbase.py
@@ -76,6 +76,10 @@ class MathDomain(Domain):
# type: (Iterable[unicode], Dict) -> None
for labelid, (doc, eqno) in otherdata['objects'].items():
if doc in docnames:
+ if labelid in self.data['objects']:
+ otherdoc, _ = self.data['objects']
+ logger.warning('duplicate label of equation %s, other instance in %s' %
+ (labelid, self.env.doc2path(otherdoc)))
self.data['objects'][labelid] = (doc, eqno)
def resolve_xref(self, env, fromdocname, builder, typ, target, node, contnode):