Is your issue REALLY a bug?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
svg(svg::Handle::from_memory(bytes)) fails if the bytes are derived from a string that contains formatting, like carriage returns or spaces/tabs. It works if the bytes are included in the source using include_bytes! because apparently that sanitizes the string.
What is the expected behavior?
The library might be expected to parse any valid SVG code, not only if it is compressed into a single line.
Here is a small project that shows the issue: https://codeberg.org/psobolik/iced-svg-fun.
Version
crates.io release
Operating System
Linux
Do you have any log output?
Is your issue REALLY a bug?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
svg(svg::Handle::from_memory(bytes))fails if the bytes are derived from a string that contains formatting, like carriage returns or spaces/tabs. It works if the bytes are included in the source usinginclude_bytes!because apparently that sanitizes the string.What is the expected behavior?
The library might be expected to parse any valid SVG code, not only if it is compressed into a single line.
Here is a small project that shows the issue: https://codeberg.org/psobolik/iced-svg-fun.
Version
crates.io release
Operating System
Linux
Do you have any log output?