Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different handling of empty or whitespace-only artwork for text vs html output #1143

Open
1 task done
jennifer-richards opened this issue Jul 17, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working medium

Comments

@jennifer-richards
Copy link
Member

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

@jennifer-richards jennifer-richards added bug Something isn't working medium labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working medium
Projects
None yet
Development

No branches or pull requests

1 participant