Add an empty line at the end of the rc file when writing to it

This commit is contained in:
Jeroen Engels 2016-03-06 23:05:18 +01:00
parent a973379bd5
commit cd8369f681
2 changed files with 4 additions and 3 deletions

View file

@ -24,4 +24,4 @@
]
}
]
}
}

View file

@ -7,9 +7,10 @@ function formatCommaFirst(o) {
return JSON.stringify(o, null, 2)
.split(/(,\n\s+)/)
.map(function (e, i) {
return i%2 ? '\n'+e.substring(4)+', ' : e
return i % 2 ? '\n' + e.substring(4) + ', ' : e
})
.join('');
.join('')
+ '\n';
}
function readConfig(configPath) {