badsyntax / SassBeautify

[not maintained] A Sublime Text plugin that beautifies Sass files.
https://github.com/badsyntax/SassBeautify
MIT License
143 stars 13 forks source link

Extra line between comment and closing bracket #113

Open owenleonard opened 8 years ago

owenleonard commented 8 years ago

When a comment is followed by a closing bracket }, and extra line is inserted between them. The comment can be at the end of a code line, or on its own line.

h1 {
  margin-top: 14px; // some comment here
}

becomes

h1 {
  margin-top: 14px; // some comment here

}

I'm on win7 with sass 3.4.22 and ST3.

owenleonard commented 8 years ago

Removing the } from SassBeautify.py line 173 fixes it, though I don't know what else that would impact.