mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix possible bug in commit 5a7eb99e4
Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
This commit is contained in:
parent
dc61f68e14
commit
d4af39ff7d
@ -119,13 +119,13 @@ class ReferencesResolver(SphinxTransform):
|
|||||||
warn = node.get('refwarn')
|
warn = node.get('refwarn')
|
||||||
if self.config.nitpicky:
|
if self.config.nitpicky:
|
||||||
warn = True
|
warn = True
|
||||||
if self._nitpick_ignore:
|
if self.env._nitpick_ignore:
|
||||||
dtype = domain and '%s:%s' % (domain.name, typ) or typ
|
dtype = domain and '%s:%s' % (domain.name, typ) or typ
|
||||||
if (dtype, target) in self._nitpick_ignore:
|
if (dtype, target) in self.env._nitpick_ignore:
|
||||||
warn = False
|
warn = False
|
||||||
# for "std" types also try without domain name
|
# for "std" types also try without domain name
|
||||||
if (not domain or domain.name == 'std') and \
|
if (not domain or domain.name == 'std') and \
|
||||||
(typ, target) in self._nitpick_ignore:
|
(typ, target) in self.env._nitpick_ignore:
|
||||||
warn = False
|
warn = False
|
||||||
if not warn:
|
if not warn:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user