Commits

Georg Brandl committed 606322a

#31: apply title transformations for xref roles in TOCs too.

  • Participants
  • Parent commits 15fb335

Comments (0)

Files changed (1)

sphinx/environment.py

     within table-of-contents link nodes.
     """
     def visit_pending_xref(self, node):
-        self.parent.append(nodes.literal(node['reftarget'], node['reftarget']))
+        text = node.astext()
+        self.parent.append(nodes.literal(text, text))
         raise nodes.SkipNode