It looks it is an open bug in YUI compressor: https://github.com/yui/yuicompressor/issues/141
On Fri, 4 Jan 2019 at 14:16, Balázs Palcsó <palcso.bal...@gmail.com> wrote: > Hi! > > I have this in my *.less* file > > *background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' > viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath > <http://www.w3.org/2000/svg'%3E%3Cpath> d='M5.414 11L4 12.414l5.414 > 5.414L20.828 6.414 19.414 5l-10 10z' fill='%23fff' > fill-rule='nonzero'/%3E%3C/svg%3E ");* > > Which works fine unless I run it with *-Dtapestry.production-mode=true*, > becuase then the whitespaces get removed breaking the SVG definition: > *url("data:image/svg+xml,%3Csvgwidth='32'height='32'viewBox='003232'xmlns='http://www.w3.org/2000/svg'%3E%3Cpathd='M5.41411L412.414l5.4145.414L20.8286.41419.4145l-1010z'fill='%23fff'fill-rule='nonzero'/%3E%3C/svg%3E > <http://www.w3.org/2000/svg'%3E%3Cpathd='M5.41411L412.414l5.4145.414L20.8286.41419.4145l-1010z'fill='%23fff'fill-rule='nonzero'/%3E%3C/svg%3E>")* > > (it is surely to do with *-Dtapestry.production-mode=true* , becuase the > issue does not manifest when I run it with > *-Dtapestry.compress-whitespace=true* *-Dtapestry.production-mode=false*) > > Any suggestions how to workaround this issue? > > Many thanks, > Balazs >