Skip to content

Commit

Permalink
fix: Add xref content to name when format is none
Browse files Browse the repository at this point in the history
This change adds `xref` content to `name` when the `format="none"` in
`xref` element.

Fixes #683
  • Loading branch information
kesara committed Sep 4, 2023
1 parent 7cd423d commit 2d41fc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xml2rfc/writers/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -2844,6 +2844,8 @@ def render_xref(self, h, x):
target = id_for_pn(target)
# plain xref
if in_name:
if format == 'none':
reftext = content
hh = build.em('[', reftext, ']', classes='xref cite')
else:
srefclass = 'xref internal'
Expand Down

0 comments on commit 2d41fc1

Please sign in to comment.