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

Inline Data URI, SVG XML loses whitespace #41

Open
danielhaim1 opened this issue Jun 3, 2018 · 1 comment
Open

Inline Data URI, SVG XML loses whitespace #41

danielhaim1 opened this issue Jun 3, 2018 · 1 comment

Comments

@danielhaim1
Copy link

I identified an issue with the minifier which removes whitespace from Data URI.

Input (expected results):

background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");

The minifier strips the whitespace, thus breaking it, output:

background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0045'%3E%3Cpathfill='%23343a40'd='M20L02h4zm05L03h4z'/%3E%3C/svg%3E");
@bbbenji
Copy link

bbbenji commented Nov 29, 2018

There are 3 issues open for YUI regarding this. However, this plugin replaced YUI with Uglifier and cssminify2. I can't find an issue in either project about this, which is probably where it belongs.

Having said that, I too am experiencing this problem.

EDIT: Fixed here: bbbenji/cssminify@3fe1f66

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

No branches or pull requests

2 participants