We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When attempting to render an SVG, I was encountering the following error:
ERROR: Failed to load image at 'file:///path/to/image.svg': SelectorError: (<LiteralToken `>, 'unpexpected literal token.')
Upon inspection, the inline styling inside the SVG image contained classes named a`.
a`
By escaping the grave accent a\` the problem was resolved.
a\`
Also note the spelling mistake in the error message. unpexpected
unpexpected
System: Linux Machine: x86_64 Version: #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC 2022 Release: 5.13.0-39-generic
WeasyPrint version: 54.3 Python version: 3.9.7 Pydyf version: 0.1.2 Pango version: 14810
The text was updated successfully, but these errors were encountered:
Fix typo in error message
8d75919
Related to Kozea/WeasyPrint#1625.
Hi!
Thank you for this bug report.
It’s been fixed in 8d75919, thanks!
You’re right, this error should be just a warning, and the SVG should be rendered (ignoring this wrong CSS rule).
Sorry, something went wrong.
fb3c39e
Don’t stop rendering SVG when CSS parsing fails
0fcc7de
Fix #1625.
No branches or pull requests
Summary
When attempting to render an SVG, I was encountering the following error:
ERROR: Failed to load image at 'file:///path/to/image.svg': SelectorError: (<LiteralToken `>, 'unpexpected literal token.')
Upon inspection, the inline styling inside the SVG image contained classes named
a`
.Resolution
By escaping the grave accent
a\`
the problem was resolved.Notes
Also note the spelling mistake in the error message.
unpexpected
Version information
System: Linux
Machine: x86_64
Version: #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC 2022
Release: 5.13.0-39-generic
WeasyPrint version: 54.3
Python version: 3.9.7
Pydyf version: 0.1.2
Pango version: 14810
The text was updated successfully, but these errors were encountered: