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

Fix xmllint img no data #1318

Merged
merged 2 commits into from
Jan 30, 2024
Merged

Fix xmllint img no data #1318

merged 2 commits into from
Jan 30, 2024

Conversation

Flowdalic
Copy link
Contributor

No description provided.

@Flowdalic Flowdalic force-pushed the fix-xmllint-img-no-data branch 2 times, most recently from 72bd5fd to 9efce95 Compare January 30, 2024 11:34
Previously the html and pdf targets would also verify the input via
xmllint. This caused some code duplication and overloaded the targets
which an arguably unrelated task (verification).

Furthermore, something changed and the

! xmllint --nonet --noout --noent --loaddtd --xpath "//img/@src[not(starts-with(., 'data:'))]" $< 2>/dev/null && true

no fails. It seems that xmllint does no longer (?) report an error
exit status if the XPath result set is empty [1]. Therfore, this rule
is currently commented out, which fixed xsf#1316.

1: https://gitlab.gnome.org/GNOME/libxml2/-/issues/673
@Kev
Copy link
Member

Kev commented Jan 30, 2024

Thanks Flow.

@Kev Kev merged commit 49c957d into xsf:master Jan 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants