Skip to content
Browse files

Setting max_char = 0 should disable wrap feature

  • Loading branch information...
1 parent 21b7d14 commit 33426446983ecc5f7d6606c085dac5b5d6c83650 @Infocatcher Infocatcher committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 beautify-html.js
View
2 beautify-html.js
@@ -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() {

0 comments on commit 3342644

Please sign in to comment.
Something went wrong with that request. Please try again.