Skip to content

Commit

Permalink
Flip the logical branching
Browse files Browse the repository at this point in the history
  • Loading branch information
ayshih committed Aug 8, 2023
1 parent 7ec2884 commit 65ff8c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sphinx/ext/inheritance_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,10 @@ def html_visit_inheritance_diagram(self: HTML5Translator, node: inheritance_diag
for child in pending_xrefs:
if child.get('refuri') is not None:
# Construct the name from the URI if the reference is external via intersphinx
if child.get('internal', True):
refname = child['reftitle']
else:
if not child.get('internal', True):
refname = child['refuri'].rsplit('#', 1)[-1]
else:
refname = child['reftitle']

urls[refname] = child.get('refuri')
elif child.get('refid') is not None:
Expand Down

0 comments on commit 65ff8c0

Please sign in to comment.