We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac3f74a commit 3e6139fCopy full SHA for 3e6139f
sphinx/writers/texinfo.py
@@ -691,7 +691,7 @@ def visit_reference(self, node: Element) -> None:
691
# cases for the sake of appearance
692
if isinstance(node.parent, (nodes.title, addnodes.desc_type)):
693
return
694
- if isinstance(node[0], nodes.image):
+ if len(node) != 0 and isinstance(node[0], nodes.image):
695
696
name = node.get('name', node.astext()).strip()
697
uri = node.get('refuri', '')
0 commit comments