xml2rfc
xml2rfc copied to clipboard
Different handling of empty or whitespace-only artwork for text vs html output
Describe the issue
In an XML draft with the following
<figure><artwork><![CDATA[
]]></artwork></figure>
running xml2rfc
is inconsistent about whether this is allowed. E.g., text output works:
$ xml2rfc --text draft.xml
Created file draft.txt
but html does not:
$ xml2rfc --html draft.xml
/Users/jennifer/Downloads/draft.xml(470): Error: Expected ascii-art artwork for <artwork type="">, but found b'<artwork xmlns:xi="http://www.w3.org/2001/XInclude" align="left" pn="section-3.1-3">\n </artwork>\n '...
Not creating output file due to errors (see above)
Unable to complete processing draft.xml
I'm not sure whether this should be allowed or not, but it should be consistent between output formats.
Code of Conduct
- [X] I agree to follow the IETF's Code of Conduct