Browse Source

Trim pretty output

master
Dylan Baker 3 months ago
parent
commit
b03a12ab47
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/compiler.ts

+ 2
- 1
src/compiler.ts View File

@@ -31,6 +31,7 @@ export default class Compiler {
31 31
     const resultError = result.find((el) => el instanceof EnvError);
32 32
     if (resultError !== undefined) return resultError;
33 33
 
34
-    return result.join(this.prettyPrint ? '\n' : '');
34
+    const output = result.join(this.prettyPrint ? '\n' : '');
35
+    return this.prettyPrint ? output.trim() : output;
35 36
   }
36 37
 }

Loading…
Cancel
Save