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
63 stars 35 forks source link

Missing whitespace in txt output after table in `<dd>` #1118

Closed rvanrheenen closed 3 months ago

rvanrheenen commented 3 months ago

Describe the issue

In the txt output, when a <dl> with spacing=“compact” includes <table> in <dd>, there is no space between the table title and next <dd>.

For example, for Table 5 in the txt output (see files below), there should be a blank line between the table title and "stream copy: True (Section 8)". For additional examples, see Tables 3, 6, 7, and 8 in the txt output.

There is space after the table title in the pdf and html outputs; the missing space only occurs in the txt output.

Files: https://www.rfc-editor.org/v3test/rfc9559-TEST.xml https://www.rfc-editor.org/v3test/rfc9559-TEST.txt https://www.rfc-editor.org/v3test/rfc9559-TEST.html https://www.rfc-editor.org/v3test/rfc9559-TEST.pdf

Code of Conduct

rvanrheenen commented 3 months ago

Also see #1117 and #1086 (other issues re <table> in <dl> found in same document)

kesara commented 3 months ago

Because spacing="compact" shouldn't HTML/PDF tables lose the space after the table? In text output, the blank line between the table and the table caption should be removed?

ajeanmahoney commented 3 months ago

@kesara, the RPC will work on how we want the inclusion of a table within a definition list to look for all list formats (true/false newline, normal/compact spacing) and will open a new issue, thanks!