Skip to content

Commit 9920abb

Browse files
Collapsing multiple consecutive newlines into a single newline for non verbose build log
1 parent 3243d24 commit 9920abb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/arduino/arduino.ts

+1
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ Please make sure the folder is not occupied by other procedures .`);
566566
if (line.length <= 0) {
567567
return;
568568
}
569+
line = line.replace(/(?:\r|\r\n|\n)+/g, os.EOL);
569570
line = `${line}${os.EOL}`;
570571
}
571572
if (!verbose) {

0 commit comments

Comments
 (0)