vertical space in nested <dl>s
type_defect | by [email protected]
For nested <dl>s, the output files seem to display different amounts of vertical space when spacing="compact". Is it possible to make it uniform? I think the ideal outcome would be to treat it the same as a <dl> that isn't nested, so a blank line between the last item in the list and the text that follows.
Search "Option" in these files: https://www.rfc-editor.org/v3test/sandy9134.xml https://www.rfc-editor.org/v3test/sandy9134.html https://www.rfc-editor.org/v3test/sandy9134.pdf https://www.rfc-editor.org/v3test/sandy9134.txt
Note: Options 2 and 3 were tested as workarounds.
Option 1: spacing="compact"
- TXT: looks good
- HTML: no blank line between
<dl>and text that follows - PDF: no blank line between
<dl>and text that follows
Option 2: spacing="compact" and empty <t>
- TXT: includes 2 blank lines between list and text that follows
- HTML: look good
- PDF: looks good
Option 3: spacing="compact" and <br>
- TXT: looks good
- HTML: looks good
- PDF: no blank line between
<dl>and text that follows
Issue migrated from trac:674 at 2022-02-08 07:17:27 +0000
@[email protected] changed title from vertical whitespace in nested <dl>s to vertical space in nested <dl>s
Seemingly, an example of this issue:
missing a blank line between the output of <t> and <dl> (nested within a <ul>) in the HTML and PDF. (The TXT file is OK.)
https://www.rfc-editor.org/v3test/test9336.html#section-4 https://www.rfc-editor.org/v3test/test9336.pdf#section-4 (for comparison: https://www.rfc-editor.org/v3test/test9336.txt) source: https://www.rfc-editor.org/v3test/test9336.xml
i.e., a missing blank line above "Excluded KeyPurposeId procedure:"
This affects readability esp. in the PDF where there happens to be a page break after the first <dt>.
screenshot of HTML:

@alicerusso, Issue with text9336 is different. It is caused by the following fix: https://github.com/ietf-tools/xml2rfc/commit/fa224c8c386941ed96678dbd790963d7f7681235