Switched everything to 2-space indentation

This commit is contained in:
josdejong 2013-11-15 18:11:50 +01:00
parent 8ddc6f3946
commit 8e07ebb711
44 changed files with 10535 additions and 10535 deletions

View File

@ -44,7 +44,7 @@ Constructs a new JSONEditor.
True by default.
Only applicable when `mode` is 'tree', 'view', or 'form'.
- `{Number} indentation`.
Number of indentation spaces. 4 by default.
Number of indentation spaces. 2 by default.
Only applicable when `mode` is 'code' or 'text'.
- `{JSON} json`

2
jsoneditor-min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1039,7 +1039,7 @@ TextEditor.prototype._create = function (container, options, json) {
this.indentation = Number(options.indentation);
}
else {
this.indentation = 4; // number of spaces
this.indentation = 2; // number of spaces
}
this.mode = (options.mode == 'code') ? 'code' : 'text';
if (this.mode == 'code') {

View File

@ -36,7 +36,7 @@ TextEditor.prototype._create = function (container, options, json) {
this.indentation = Number(options.indentation);
}
else {
this.indentation = 4; // number of spaces
this.indentation = 2; // number of spaces
}
this.mode = (options.mode == 'code') ? 'code' : 'text';
if (this.mode == 'code') {