Fix the generated indentation

This is to fix the generated indentation.
When the metadata.js is generated, it is now respecting the 4 spaces indentations standard.
This commit is contained in:
Alezia Kurdis 2021-03-10 22:07:51 -05:00 committed by GitHub
parent 33e5f4ed05
commit 1376e8593b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,18 +110,18 @@
if (index < obj.applications.length - 1 ) {
comma = ",";
}
jsdata = jsdata + " {\n";
jsdata = jsdata + ' "isActive": ' + item.isActive + ',\n';
jsdata = jsdata + ' "directory": "' + item.directory + '",\n';
jsdata = jsdata + ' "name": "' + item.name.escapeJSON() + '",\n';
jsdata = jsdata + ' "description": "' + item.description.escapeJSON() + '",\n';
jsdata = jsdata + ' "jsfile": "' + item.jsfile + '",\n';
jsdata = jsdata + ' "icon": "' + item.icon + '",\n';
jsdata = jsdata + ' "caption": "' + item.caption.escapeJSON() + '"\n';
jsdata = jsdata + " }" + comma + "\n";
jsdata = jsdata + " {\n";
jsdata = jsdata + ' "isActive": ' + item.isActive + ',\n';
jsdata = jsdata + ' "directory": "' + item.directory + '",\n';
jsdata = jsdata + ' "name": "' + item.name.escapeJSON() + '",\n';
jsdata = jsdata + ' "description": "' + item.description.escapeJSON() + '",\n';
jsdata = jsdata + ' "jsfile": "' + item.jsfile + '",\n';
jsdata = jsdata + ' "icon": "' + item.icon + '",\n';
jsdata = jsdata + ' "caption": "' + item.caption.escapeJSON() + '"\n';
jsdata = jsdata + " }" + comma + "\n";
});
jsdata = jsdata + " ]\n";
jsdata = jsdata + " ]\n";
jsdata = jsdata + "};";
return jsdata;