Merge 903edc4a1a into bdfcbf496b
This commit is contained in:
commit
58524fd1d5
|
|
@ -59,7 +59,8 @@ function OutputStream(options) {
|
||||||
source_map : null,
|
source_map : null,
|
||||||
bracketize : false,
|
bracketize : false,
|
||||||
semicolons : true,
|
semicolons : true,
|
||||||
comments : false
|
comments : false,
|
||||||
|
preserve_line : false
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
var indentation = 0;
|
var indentation = 0;
|
||||||
|
|
@ -154,6 +155,19 @@ function OutputStream(options) {
|
||||||
might_need_semicolon = false;
|
might_need_semicolon = false;
|
||||||
maybe_newline();
|
maybe_newline();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!options.beautify && options.preserve_line && stack[stack.length - 1]) {
|
||||||
|
var target_line = stack[stack.length - 1].start.line;
|
||||||
|
while (current_line < target_line) {
|
||||||
|
OUTPUT += "\n";
|
||||||
|
current_pos++;
|
||||||
|
current_line++;
|
||||||
|
current_col = 0;
|
||||||
|
|
||||||
|
might_need_space = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (might_need_space) {
|
if (might_need_space) {
|
||||||
var prev = last_char();
|
var prev = last_char();
|
||||||
if ((is_identifier_char(prev)
|
if ((is_identifier_char(prev)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user