Hirse / brackets-beautify

Brackets Extension to beautify JavaScript, HTML, and CSS files.
MIT License
34 stars 3 forks source link

brackets-beautify adding extra blank lines before head, body, /html tags #10

Closed jbwCode closed 8 years ago

jbwCode commented 8 years ago

This is a great extension, but I was getting annoyed by this behavior. This is apparently the default option for js-beautify with html.

There was no option in the "default.jsbeautifyrc" file for this option, so I added

"extra_liners": []

to the "html" section of "default.jsbeautifyrc" within my Brackets extensions folder, based on the documentation for js-beautify. Works like a charm!

https://github.com/beautify-web/js-beautify

-E, --extra_liners List of tags (defaults to [head,body,/html] that should have an extra newline before them.

Hirse commented 8 years ago

Happy you like it.

As your problem seems to be solved, I am going to close this.