mirror of
https://github.com/beautifier/js-beautify.git
synced 2024-11-23 04:40:06 +00:00
Setting max_char = 0 should disable wrap feature
This commit is contained in:
parent
21b7d1468c
commit
3342644698
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user