From 35bbade15d64fa7e8046312901e6a54e7e4096b2 Mon Sep 17 00:00:00 2001 From: 4n0n <4n0n@tinkr.site> Date: Tue, 28 Mar 2023 22:52:33 -0500 Subject: [PATCH] Strip prepended white space --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c1395b3..4f58a19 100644 --- a/index.js +++ b/index.js @@ -226,7 +226,9 @@ function Dump(filePath) { }); } - fs.writeFileSync(p, markdown); + let final = markdown.replace(/^[ \t]+/gm, ""); + + fs.writeFileSync(p, final); } // Dump(path.join(__dirname, "Bastion.lua"));