Merged in tk0miya/sphinx (pull request #264)

Fix could not resolve xref for figure node with :name: option
This commit is contained in:
Takayuki Shimizukawa
2014-08-10 14:33:27 +09:00
+7
View File
@@ -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':