Open kesara opened 4 months ago
I think it's worth trying to change things such that generatiing
4. 4.1 Sublist with '%p' parent counter element in the list
counter, item one
4.2 Item two.
4.3 Item three.
we generate
4.
4.1 Sublist with '%p' parent counter element in the list
counter, item one
4.2 Item two.
4.3 Item three.
Unless that breaks the intended fix for the rfc-to-be.
What is better about that superfluous empty line?
(You can probably have one if you want with <br>
)
Look at it in context with the rest of the nested <ol>
above it in the test document: https://github.com/ietf-tools/xml2rfc/blob/fdb6fb8ad2024b3483f7480a07f8370e673c27e2/tests/valid/elements.bom.text#L366-L458 and consider what would happen if there were any text between the <li>
and <ol>
at https://github.com/ietf-tools/xml2rfc/blob/fdb6fb8ad2024b3483f7480a07f8370e673c27e2/tests/input/elements.xml#L472-L473
I have converted PR to a draft.
The changes from https://github.com/ietf-tools/xml2rfc/pull/1137/commits/e889f930b982c9bc9045f8a6e653f25a6464ec58 add a new line when with the list style to both ol
and ul
.
This was skipped previously.
Specifically, this adds list style + new line when li
contains an artwork
, figure
, or sourcecode
as the first child.
See how this changed test outputs in https://github.com/ietf-tools/xml2rfc/pull/1137/commits/ca8286a4126bc28bba095eb7e708c5a7424aadef
Note that the test output has date changes and multiple content changes propagated because of the addition of new lines.
https://github.com/ietf-tools/xml2rfc/pull/1137/commits/e889f930b982c9bc9045f8a6e653f25a6464ec58 fixes #1138
Fixes #1135 Fixes #1138
See changes made in https://github.com/ietf-tools/xml2rfc/commit/3712523cb325bb43b1b164e833dd436c1c62a295 for context.
This change can affect if
ol
is used inside ali
as the first element and theli
element is inside anotherol
element.I could not find any published RFCs with XML that match the above condition.
These are the RFCs that I found that use
ol
as the first element inli
:I didn't notice any changes in text output due to this change. But there are a few minor changes (with spacing) due to changes over the years.