Fix blank lines in the output.
authorMihai Bazon <mihai.bazon@gmail.com>
Mon, 4 May 2015 14:55:42 +0000 (17:55 +0300)
committerMihai Bazon <mihai.bazon@gmail.com>
Mon, 4 May 2015 14:55:42 +0000 (17:55 +0300)
The issue was more obvious when max_line_len has a small value, rather than
the default 32K characters.  A blank line showed up after most statements.

lib/output.js

index 135636b..1d67b1b 100644 (file)
@@ -176,7 +176,6 @@ function OutputStream(options) {
                     might_need_space = false;
             }
             might_need_semicolon = false;
-            maybe_newline();
         }
 
         if (!options.beautify && options.preserve_line && stack[stack.length - 1]) {