grunt-prettysass icon indicating copy to clipboard operation
grunt-prettysass copied to clipboard

Fixing problem with alphabetization

Open Sebastian-Fitzner opened this issue 11 years ago • 2 comments

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.

Sebastian-Fitzner avatar Jan 15 '14 11:01 Sebastian-Fitzner

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

djanix avatar Apr 14 '14 17:04 djanix

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

rampyodm avatar May 28 '14 15:05 rampyodm