Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Inline Data URI, SVG XML loses whitespace #6

Open
bbbenji opened this issue Nov 29, 2018 · 0 comments
Open

Inline Data URI, SVG XML loses whitespace #6

bbbenji opened this issue Nov 29, 2018 · 0 comments

Comments

@bbbenji
Copy link

bbbenji commented Nov 29, 2018

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");

Minified 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");

Related:
digitalsparky/jekyll-minifier#41
yui/yuicompressor#141
yui/yuicompressor#304
yui/yuicompressor#274

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant