Setting max_char = 0 should disable wrap feature

This commit is contained in:
Infocatcher 2012-03-29 16:04:24 +04:00
parent 21b7d1468c
commit 3342644698

View File

@ -49,7 +49,7 @@ function style_html(html_source, options) {
indent_size = options.indent_size || 4;
indent_character = options.indent_char || ' ';
brace_style = options.brace_style || 'collapse';
max_char = options.max_char || '70';
max_char = options.max_char == 0 ? Infinity : options.max_char || 70;
unformatted = options.unformatted || ['a'];
function Parser() {