Closed exdeniz closed 6 years ago
Does it have something to do with single/double quote conversion?
Yes, inline svg need use single. and see first quote after url(
background-image url(''data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='003030'> <circle cx='15' cy='15' r='14' fill='none' stroke='#3c3c3c' stroke-width='1'/> </svg>'') // www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'> <circle cx='15' cy='15' r='14' fill='none' stroke='#3c3c3c' stroke-width='1'/> </svg>')
May be can add comment line before like // supremacy disable
Formatter work is correct, this is particular case.
I think this is an exception for single-quote users. The formatter must not converting double to single quotes for url("data:image/svg+xml;utf8,<svg>....</svg>")
. I'll make a patch for that real quick.
Here's the solution:
data:image/svg+xml;utf8,
, then it will convert the outer quote chars normally and also inverse the quotes in the content (single to double or vice versa, if needed.) See background-image
var1
var2
For example,
This is fixed in version 2.6.0.
Cheers!
Thank you for fix, it was really fast!
Bug on line like this
after format
setting supremacy