Skip to content

Commit

Permalink
Fix webpage tab indenting
Browse files Browse the repository at this point in the history
Fixes #1470
  • Loading branch information
bitwiseman committed Aug 8, 2018
1 parent a03e61e commit 7ba6b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/common-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function beautify() {
the.language = $('#language option:selected').text();

opts.indent_size = $('#tabsize').val();
opts.indent_char = opts.indent_size === 1 ? '\t' : ' ';
opts.indent_char = parseInt(opts.indent_size, 10) === 1 ? '\t' : ' ';
opts.max_preserve_newlines = $('#max-preserve-newlines').val();
opts.preserve_newlines = opts.max_preserve_newlines !== "-1";
opts.keep_array_indentation = $('#keep-array-indentation').prop('checked');
Expand Down

0 comments on commit 7ba6b31

Please sign in to comment.