fix: make prettyPrint always add a newline
This commit is contained in:
parent
2503756c60
commit
f013c5b111
@ -62,7 +62,6 @@ function formatter(value: any) {
|
|||||||
} else {
|
} else {
|
||||||
line += filter(value);
|
line += filter(value);
|
||||||
}
|
}
|
||||||
line += "\n";
|
|
||||||
return line;
|
return line;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -146,7 +145,7 @@ class PrettyPrintTranform extends Transform {
|
|||||||
if (!line) {
|
if (!line) {
|
||||||
return cb();
|
return cb();
|
||||||
}
|
}
|
||||||
process.stdout.write(line);
|
process.stdout.write(line + "\n");
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user