From 2d41fc13dbced135aff9880b493fa63dc3ee5f9f Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Mon, 4 Sep 2023 23:54:58 +1200 Subject: [PATCH] fix: Add xref content to name when format is none This change adds `xref` content to `name` when the `format="none"` in `xref` element. Fixes #683 --- xml2rfc/writers/html.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xml2rfc/writers/html.py b/xml2rfc/writers/html.py index f9f9bff9..7bdd1d96 100644 --- a/xml2rfc/writers/html.py +++ b/xml2rfc/writers/html.py @@ -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'