forked from svrjs/svrjs
SVR.JS now saves configuration files with trailing newlines.
This commit is contained in:
parent
4c9cd87a94
commit
024d6cc2d3
1 changed files with 1 additions and 1 deletions
2
svr.js
2
svr.js
|
@ -5520,7 +5520,7 @@ function saveConfig() {
|
|||
if (configJSONobj.exposeModsInErrorPages === undefined) configJSONobj.exposeModsInErrorPages = true;
|
||||
if (configJSONobj.disableTrailingSlashRedirects === undefined) configJSONobj.disableTrailingSlashRedirects = false;
|
||||
|
||||
var configString = JSON.stringify(configJSONobj, null, 2);
|
||||
var configString = JSON.stringify(configJSONobj, null, 2) + "\n";
|
||||
fs.writeFileSync(__dirname + "/config.json", configString);
|
||||
break;
|
||||
} catch (err) {
|
||||
|
|
Reference in a new issue