brandonminch / grunt-prettysass

Grunt plugin for beautifying SASS source files.
MIT License
18 stars 2 forks source link

Fixing problem with alphabetization #3

Open Sebastian-Fitzner opened 10 years ago

Sebastian-Fitzner commented 10 years ago

First of all, great module! I have a problem when I activate alphabetization with scss files which are structured like that:

#page {
position: relative;
.next, 
.prev {
width: 100;
}
}

When i run prettysass over this code, I get the following output:

#page {
.next, 
position: relative;
.prev {
width: 100;
}
}

So it seems that if you use a new line for each class or id, the module thinks it is an attribute and sorts it. It have no problems with classes and ids in one line.

Would be great if you can take a look.

djanix commented 10 years ago

same here. Can't use it for now because of this specific issue.

rampyodm commented 10 years ago

Yep. It would be nice if this could get fixed. Probably going to use CSSComb once it fully supports scss files.