Skip to content

Commit

Permalink
Only remove blank line ending for web application files (#1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano authored Mar 18, 2024
1 parent 0a446be commit 836bc7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 836bc7a

Please sign in to comment.