diff --git a/libs/Task.js b/libs/Task.js index 9d09de8..cf0d25b 100644 --- a/libs/Task.js +++ b/libs/Task.js @@ -380,7 +380,11 @@ module.exports = class Task{ }, output => { // Replace console colors output = output.replace(/\x1b\[[0-9;]*m/g, ""); - this.output.push(output); + + // Split lines and trim + output.trim().split('\n').forEach(line => { + this.output.push(line.trim()); + }); }) ); diff --git a/public/index.html b/public/index.html index a7f3486..fecf5bb 100644 --- a/public/index.html +++ b/public/index.html @@ -113,7 +113,7 @@
Status:
Time Elapsed:
Output: ViewHide
- +