lsdsjy/prettier-plugin-stylus

Extra Whitespace Between Blocks

Opened this issue · 1 comments

.example
  color red





.example2
  color blue

Processes leaving the same amount of space. Prettier in other languages collapses the extra unnecessary extra lines. Not sure if that's possible in Stylus because of the white space sensitivity, just feels weird.

In fact it's a feature to keep the same amount of blank lines, see:

function preserveBlankLines(text: string) {

but it's good if we can have an option to opt-out of this behavior. I'll have a look at it later.