senchalabs / cssbeautify

Reindent and reformat CSS
http://www.senchalabs.org/cssbeautify/
Apache License 2.0
673 stars 133 forks source link

space after comma #15

Open Daniel-Hug opened 11 years ago

Daniel-Hug commented 11 years ago

With this CSS as input:

button,input,select,textarea{font-family:"museo-sans-rounded","Arial Rounded",sans-serif}

This is the output we currently get:

button,input,select,textarea {
    font-family: "museo-sans-rounded","Arial Rounded",sans-serif;
}

I would prefer to have a space or newline (perhaps toggleable) after each comma:

button, input, select, textarea {
    font-family: "museo-sans-rounded", "Arial Rounded", sans-serif;
}

Just be careful in your implementation of this to not 'fix' what shouldn't be fixed:

li:after {
    content: ",";
}

(don't add a space after the comma in the last example rule.)

sindresorhus commented 11 years ago

:+1:

tomByrer commented 10 years ago

+1 spacing,helps,with,readability,don'tchathink?