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