einars/js-beautify — pull request #89 by thron7 (2012-01-18 16:06:56+00:00)
Title: Issue#84: Wrong indentation for block comments

The following simple patch seems to work well for me.

You are calling 'self.trim_output' in 'self.append_newline' anyway. With an additional call to it in line 1034 you're undoing the effect of 'append_newline'.