CSScomb converts the outermost double quotes into single quotes, resulting in an error in the final parsing of postcss.
postcss-svgo: Error in parsing SVG: Unquoted attribute value
When I exchanged all the single quotes and double quotes in the source string, I found that CSScomb only converted the outermost double quotes into single quotes.
When I finish the adjustment, there is no change before and after formatting, which can be parsed normally.
I think this should be a bug. CSScomb should deal with the problem of both single and double quotation marks in the string, instead of blindly converting the outermost double quotation marks into single quotation marks.
About the CSScomb configuration item
"quotes": "single"
.The example is as follows:
before:
formatted:
CSScomb converts the outermost double quotes into single quotes, resulting in an error in the final parsing of postcss.
When I exchanged all the single quotes and double quotes in the source string, I found that CSScomb only converted the outermost double quotes into single quotes.
When I finish the adjustment, there is no change before and after formatting, which can be parsed normally.
I think this should be a bug. CSScomb should deal with the problem of both single and double quotation marks in the string, instead of blindly converting the outermost double quotation marks into single quotation marks.