improve --beautify bracketize

reduce whitespaces from if-else statements

fixes #1482
closes #1483
This commit is contained in:
alexlamsl
2017-02-18 19:30:33 +08:00
parent 7e6331bb39
commit 09f9ae2de9
5 changed files with 127 additions and 1 deletions

View File

@@ -938,7 +938,10 @@ function OutputStream(options) {
output.space();
output.print("else");
output.space();
force_statement(self.alternative, output);
if (self.alternative instanceof AST_If)
self.alternative.print(output);
else
force_statement(self.alternative, output);
} else {
self._do_print_body(output);
}