einars/js-beautify — pull request #128 by evocateur (2012-07-13 16:35:30+00:00)
Title: Beautify beautify.js itself, adding jshint config

Over time, various patches have introduced inconsistent style to the main `beautify.js` file. This patch re-normalizes the file, with some jshint-inspired fixes to a few Python-isms.

I purposely avoided changing the incredibly complex multi-line conditionals and while statements, as I did not see the benefit of applying the current results of beautification (munging it all into one line) vs the relative clarity and history of the changes in those spots.

All the tests continue to pass. (indeed, ensuring this was the case inspired https://github.com/einars/js-beautify/pull/127 )