Extra line space in Beautify output


#1

Has anyone else seen this?

In a sass (scss) file, code like this, with multiple blocks:

.small-block-grid-3 > li {
    width: 33.33333%;
    list-style: none;
}

.small-block-grid-3 > li:nth-of-type(1n) {
    clear: none;
}

.small-block-grid-3 > li:nth-of-type(3n+1) {
    clear: both;
}

will beautify to this:

  .small-block-grid-3 > li {
    width: 33.33333%;
    list-style: none;

  }
  .small-block-grid-3 > li:nth-of-type(1n) {
    clear: none;

  }
  .small-block-grid-3 > li:nth-of-type(3n+1) {
    clear: both;
  }

As you can see, there’s an extra line space before the closing brace on each rule, except the last. Most annoying. I’d rather have no space, or a space after the bracket if anything.

This doesn’t happen if the same code is saved as CSS, only as SCSS.

This has been for a while, currently on Atom .174, Beautify 0.21.2.

I logged it as an issue with Beautify, who said it’s coming from pretty-diff, so I logged an issue there. It’s been marked as UTR, so if someone can shed more light on this I’d love to get rid of it.


#2

UTR? Is that Unable To Reproduce?


#3

Does it happen with all other packages disabled?


#4

Just answered my own question: yes it does