We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcca8bf commit 15e32c4Copy full SHA for 15e32c4
src/commands/compile.ts
@@ -96,6 +96,11 @@ async function importFile(
96
if (typeof file.content === "string") {
97
enc = false;
98
content = file.content.split(/\r?\n/);
99
+
100
+ // Avoid appending a blank line on every save, which would cause a web app file to grow each time
101
+ if (content.length > 1 && content[content.length - 1] === "") {
102
+ content.pop();
103
+ }
104
} else {
105
// Base64 encoding must be in chunk size multiple of 3 and within the server's potential 32K string limit
106
// Output is 4 chars for each 3 input, so 24573/3*4 = 32764
0 commit comments