senchalabs / cssbeautify

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

generated extra space produces invalid CSS #47

Open fogshot opened 8 years ago

fogshot commented 8 years ago

I am using CSS beautify as part of this package for Sublime Text 3. I have this code in a SASS file of mine.

.subnav-list {
    &:not(:first-of-type) {
        ...
    }
}

after prettifying it becomes this, which is invalid (note the extra space before first-of-type).

.subnav-list {
    &:not(: first-of-type) {
        ...
    }
}