Categorize "duplicate citation" warnings.

This commit is contained in:
Kale Kundert 2017-04-05 21:24:49 -07:00
parent 1123c3bda6
commit ff7b9518ba
No known key found for this signature in database
GPG Key ID: C6238221D17CAFAE

View File

@ -571,7 +571,7 @@ class StandardDomain(Domain):
if label in self.data['citations']: if label in self.data['citations']:
path = env.doc2path(self.data['citations'][label][0]) path = env.doc2path(self.data['citations'][label][0])
logger.warning('duplicate citation %s, other instance in %s', label, path, logger.warning('duplicate citation %s, other instance in %s', label, path,
location=node) location=node, type='ref', subtype='citation')
self.data['citations'][label] = (docname, node['ids'][0]) self.data['citations'][label] = (docname, node['ids'][0])
def note_labels(self, env, docname, document): def note_labels(self, env, docname, document):