From 836bc7ab647b543d781f9dc9f4a421d8fe2183f0 Mon Sep 17 00:00:00 2001 From: Brett Saviano Date: Mon, 18 Mar 2024 13:21:12 -0400 Subject: [PATCH] Only remove blank line ending for web application files (#1334) --- src/commands/compile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/compile.ts b/src/commands/compile.ts index b1b96da4..41fc64a5 100644 --- a/src/commands/compile.ts +++ b/src/commands/compile.ts @@ -100,7 +100,7 @@ async function importFile( content = file.content.split(/\r?\n/); // Avoid appending a blank line on every save, which would cause a web app file to grow each time - if (content.length > 1 && content[content.length - 1] === "") { + if (file.name.includes("/") && content.length > 1 && content[content.length - 1] == "") { content.pop(); } } else {