Closed rvanrheenen closed 7 months ago
This is caused by a bug in WeasyPrint. See https://github.com/Kozea/WeasyPrint/issues/2003
Edit: This is not a WeasyPrint but. This happened because WeasyPrint has a flag to follow HTML presentational hints. And xml2rfc
doesn't set that flag.
See https://github.com/Kozea/WeasyPrint/issues/2003#issuecomment-1815336697
This doesn’t help after
<aside>
though, as<aside>
is not allowed in<li>
or<ol>
.
Which is a bug in v3.rnc
and should be fixed.
In the pdf output, numbering for an
<ol>
does not continue correctly after<aside>
or<artwork>
. The txt and html outputs are correct.The "start" attribute of
<ol>
is used after the<aside>
or<artwork>
element (with the appropriate value of "start" to continue the numbering):<ol spacing="compact" start="4">
A workaround for the misnumbering following
<artwork>
is to nest the<artwork>
within<li>
and not start a new<ol>
with the start attribute. This doesn’t help after<aside>
though, as<aside>
is not allowed in<li>
or<ol>
.For examples, see Sections 4.3.1, 4.3.2, 4.3.4, 5.3.1, 5.3.2, and 5.3.4 in the pdf output in these files:
https://www.rfc-editor.org/v3test/rfc9496.pdf https://www.rfc-editor.org/v3test/rfc9496.txt https://www.rfc-editor.org/v3test/rfc9496.html https://www.rfc-editor.org/v3test/rfc9496.xml
One example of incorrect numbering in pdf output (should be numbered 1, 2, 3, 4 rather than 1, 1, 2, 1):
Code of Conduct