Dylan Baker пре 4 година
родитељ
комит
b03a12ab47
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2
    1
      src/compiler.ts

+ 2
- 1
src/compiler.ts Прегледај датотеку

@@ -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…
Откажи
Сачувај