sublimetext-codeformatter
sublimetext-codeformatter copied to clipboard
SCSS nested indenting buggy after commit #290
Since commit #290 the closing brackets and subsequent rules in a nest have less indentation than there should be depending on their nested depth. With indenting set to 4 spaces:
Expected
.test {
margin: 0;
.nest1 {
margin: 0;
.nest2 {
margin: 0;
.nest3 {
margin: 0;
.nest4 {
margin: 0;
}
}
.test1 {
margin: 0;
}
}
}
}
Actual
.test {
margin: 0;
.nest1 {
margin: 0;
.nest2 {
margin: 0;
.nest3 {
margin: 0;
.nest4 {
margin: 0;
}
}
.test1 {
margin: 0;
}
}
}
}
As per https://github.com/akalongman/sublimetext-codeformatter/pull/290#issuecomment-282575462 previously it used css
formatter so it was failing on scss
specific rules. Now it is failing because original scss
python formatting library was never written properly. When I get a chance I'll try to fix it.