ascii_only : false,
inline_script : false,
width : 80,
+ max_line_len : 32000,
ie_proof : true,
beautify : true
});
return last.charAt(last.length - 1);
};
+ function maybe_newline() {
+ if (options.max_line_len && current_col > options.max_line_len)
+ print("\n");
+ };
+
function print(str) {
str = String(str);
var ch = str.charAt(0);
might_need_space = false;
}
might_need_semicolon = false;
+ maybe_newline();
}
if (might_need_space) {
if ((is_identifier_char(last_char())
current_pos++;
}
might_need_space = false;
+ maybe_newline();
}
var a = str.split(/\r?\n/), n = a.length;
current_line += n;
if (n == 1) {
- current_col = a[n - 1].length;
- } else {
current_col += a[n - 1].length;
+ } else {
+ current_col = a[n - 1].length;
}
current_pos += str.length;
last = str;