Open henriquebs12 opened 5 years ago
@henriquebs12 Change lines-between-rulesets
to be true
instead of 1
. You just helped me solve my search for adding lines between rulesets. When I copied your code with a 1
, I got the same issue you're running into. When I changed it to true
, I got the expected output. Hope that helps, and thank you for indirectly helping me!
@henriquebs12 Never mind. It's a really weird behavior. When I set the value to 1
and run CSScomb, I get the issue. I set it to true
instead and it makes it the expected output. If I leave it as true
and paste in fresh CSS to be formatted, I don't get any lines between rulesets. I have to set it to 1
again, run CSScomb, and then set it to true
and run CSScomb to get the correct output. Sorry about that. :/
Good day! To correct the indention, I changed the value in the file lines-between-rulesets.js of 'runBefore ()' function:
from
get runBefore () {
return 'block-indent';
},
to
get runBefore () {
return 'tab-size';
},
After that, it began to work as it should! I hope that I will help someone ...
Consider the following CSS:
Before:
Expected behavior:
After CSSComb:
Problem confirmed in Sublime and VS Code. So there is definitely something wrong when using
The rest of my configs: