mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-08-26 05:07:35 -05:00
Merged in tk0miya/sphinx (pull request #264)
Fix could not resolve xref for figure node with :name: option
This commit is contained in:
@@ -549,6 +549,13 @@ class StandardDomain(Domain):
|
||||
break
|
||||
else:
|
||||
continue
|
||||
elif node.tagname == 'image' and node.parent.tagname == 'figure':
|
||||
for n in node.parent:
|
||||
if n.tagname == 'caption':
|
||||
sectname = clean_astext(n)
|
||||
break
|
||||
else:
|
||||
continue
|
||||
elif node.tagname == 'table':
|
||||
for n in node:
|
||||
if n.tagname == 'title':
|
||||
|
||||
Reference in New Issue
Block a user