RFC Errata
RFC 7991, "The "xml2rfc" Version 3 Vocabulary", December 2016
Source of RFC: IABSee Also: RFC 7991 w/ inline errata
Errata ID: 6387
Status: Verified
Type: Technical
Publication Format(s) : TEXT
Reported By: Julian Reschke
Date Reported: 2021-01-18
Verifier Name: Mirja Kühlewiind (IAB Chair)
Date Verified: 2021-02-04
Section 2.48 says:
When rendered, source code is always shown in a monospace font. When <sourcecode> is a child of <figure> or <section>, it provides full control of horizontal whitespace and line breaks. When formatted, it is indented relative to the left margin of the enclosing element. It is thus useful for source code and formal languages (such as ABNF [RFC5234] or the RNC notation used in this document). (When <sourcecode> is a child of other elements, it flows with the text that surrounds it.) Tab characters (U+0009) inside of this element are prohibited.
It should say:
When rendered, source code is always shown in a monospace font. Furthermore, it provides full control of horizontal whitespace and line breaks. Tab characters (U+0009) inside of this element are prohibited.
Notes:
The text hints at uses of <sourcecode> as inline element, but the grammar does not allow any such use.