mirror of
https://github.com/beautifier/js-beautify.git
synced 2024-11-23 12:49:40 +00:00
Minor fix, beautifying markup was broken.
This commit is contained in:
parent
f5ec6a9159
commit
8597d302f8
@ -29,7 +29,7 @@ function do_js_beautify()
|
||||
|
||||
|
||||
if (js_source && js_source[0] === '<') {
|
||||
document.getElementById('content').value = style_html(js_source, tabsize, indent_char, 80);
|
||||
document.getElementById('content').value = style_html(js_source, indent_size, indent_char, 80);
|
||||
} else {
|
||||
document.getElementById('content').value =
|
||||
js_beautify(js_source, {indent_size: indent_size, indent_char: indent_char, preserve_newlines:preserve_newlines});
|
||||
|
Loading…
Reference in New Issue
Block a user