cssminify icon indicating copy to clipboard operation
cssminify copied to clipboard

Inline Data URI, SVG XML loses whitespace

Open bbbenji opened this issue 7 years ago • 0 comments

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: https://github.com/digitalsparky/jekyll-minifier/issues/41 https://github.com/yui/yuicompressor/issues/141 https://github.com/yui/yuicompressor/issues/304 https://github.com/yui/yuicompressor/issues/274

bbbenji avatar Nov 29 '18 11:11 bbbenji