rbtech / css-purge

A CSS tool written in Node JS as a command line app or library for the purging, burning, reducing, shortening, compressing, cleaning, trimming and formatting of duplicate, extra, excess or bloated CSS.
http://rbtech.github.io/css-purge
MIT License
125 stars 19 forks source link

fix(format_font_family) do not double up on quotes #54

Closed maryb86 closed 3 years ago

maryb86 commented 4 years ago

Fix bug where if a font family name with spaces was wrapped in single quotes css-purge would add double quotes around the single quotes. Both quote styles are acceptable. Adding the extra quotes breaks the font-family so that it's no longer applied, and this avoids that happening.

Before change: .panel { font-family: 'my font'; } becomes .panel { font-family: "'my font'"; } After change: .panel { font-family: 'my font'; } remains .panel { font-family: 'my font'; }

AndrewEQ commented 3 years ago

Cool man, GJ