einars/js-beautify — pull request #83 by zhizhangchen (2011-12-21 05:47:59+00:00)
Title: Print newline only if the tag has no content and has child

When there's content, we actually don't need to print new line. Only when there's child and no content that we need a new ine, for example:
<h1>hello</h1> doesn't need a new line,
<div>
<div></div>
<div>
needs a new line for the outer div.