-
Notifications
You must be signed in to change notification settings - Fork 252
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
ID cleanup bug #15
Comments
Thanks for this detailed report, @ted451! I'm on a conference right now, but will look into this as soon as I find some time! Cheers, Joschi |
Just had the similar issue, with the exact same resulting id. |
Thanks @paazmaya. I'll try to work on it today or tomorrow! |
@ted451 @paazmaya Anyone subscribed to this issue: Could you please send me an original SVG file that reproducibly leads to this error (via email to joschi@kuphal.net or inline to this issue)? Thanks! |
@jkphl I have sent the files via email. Here are the steps that allowed me to reproduce the bug:
|
Thanks a lot @ted451, will try to work on it as soon as possible! :) |
Sometimes when an SVG has ID's inside it (like when using a filter), the shortened ID after cleanup will be borked, i.e. it seems to have some extra characters or something like that. Example (output after cleanup and spriting):
Here you can see that filter has an ID 'ba' and the path should be using it -- but the path can't actually 'match it'. When I open this file in Chrome and inspect with developer tools, the ID is shown as "ba " (notice the space). Also, some others are shown as "b~a", "b|a" and such. The ones with 'invisible characters' do not match, and svg effects just disappear.
Hope this makes sense, and let me know if you need more info...
P.S. Also, many thanks for great module, much appreciated!
The text was updated successfully, but these errors were encountered: