diff --git a/xml2rfc/writers/text.py b/xml2rfc/writers/text.py index 94a3b7fb..70b91d25 100644 --- a/xml2rfc/writers/text.py +++ b/xml2rfc/writers/text.py @@ -1648,7 +1648,10 @@ def render_eref(self, e, width, **kwargs): self.warn(e, "Expected the 'target' attribute to have a value, but found %s" % (etree.tostring(e), )) if brackets == 'none': if e.text and target: - target = "(%s)" % target + if target[0] == '#': + target = "" + else: + target = "(%s)" % target elif brackets == 'angle': target = "<%s>" % target else: