ietf-tools / xml2rfc

Generate RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies
https://ietf-tools.github.io/xml2rfc/
BSD 3-Clause "New" or "Revised" License
69 stars 38 forks source link

Stripping empty lines around <sourcecode content appears to be an undocumented feature #986

Open cabo opened 1 year ago

cabo commented 1 year ago

Describe the issue

https://github.com/ietf-tools/datatracker/issues/5544#issuecomment-1527820503

Note that this feature probably cannot be removed; it needs to be documented instead.

Code of Conduct

cabo commented 1 year ago

Note that RFC 8792, Section 9.4, has a strong dependency on the newline stripping, opting for the newline-as-separator model (i.e., always stripping the last newline). Since newline-as-terminator is the prevailing model, this is another bug, this time in RFC 8792.