Skip to content
This repository was archived by the owner on Dec 22, 2024. It is now read-only.

Commit d7ad51c

Browse files
elektronikworkshophlovdal
authored andcommitted
Collapsing multiple consecutive newlines into a single newline for non verbose build log
1 parent 5eaa9fe commit d7ad51c

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)