Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix formatter indendation #1
Copied from: leafo/scssphp#291
Clarification : this issue is about indentation differences (vs the reference ruby implementation) when using the Nested formatter.
Hint: see adjustAllChildren()
Nice-to-have: eliminate the separate adjustAllChildren() pass
@robocoder I just pushed a working branch with a refactoring of the Nested formatter that seems to solve a lot of cases in the ruby test cases.
This a somme little impacts on outputs test, and a lot on outputs_numbered because having a blank line before each numbering comment line.
I got rid of the
Some cases are still not good like https://github.com/scssphp/scssphp/blob/master/tests/scss_test.rb#L802 but the Formatter alone can't do anything here as lines are coming all-in-one formatted from the Compiler. This case will need some improvement in the Compiler itself