From 024d6cc2d3de5e2b07a9bf304c4dfd918395493b Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 3 Dec 2023 12:02:49 +0100 Subject: [PATCH] SVR.JS now saves configuration files with trailing newlines. --- svr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr.js b/svr.js index e0da8a8..7a090d0 100644 --- a/svr.js +++ b/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) {