mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Refactor: refer refexplicit attr on fetching title
This commit is contained in:
parent
16e1378bca
commit
e4799323fb
@ -641,11 +641,12 @@ class StandardDomain(Domain):
|
||||
lineno=node.line)
|
||||
return contnode
|
||||
|
||||
title = contnode.astext()
|
||||
if target == fully_normalize_name(title):
|
||||
title = env.config.numfig_format.get(figtype, '')
|
||||
|
||||
try:
|
||||
if node['refexplicit']:
|
||||
title = contnode.astext()
|
||||
else:
|
||||
title = env.config.numfig_format.get(figtype, '')
|
||||
|
||||
newtitle = title % '.'.join(map(str, fignumber))
|
||||
except TypeError:
|
||||
env.warn(fromdocname, 'invalid numfig_format: %s' % title,
|
||||
|
Loading…
Reference in New Issue
Block a user