Skip to content

Commit 3a70547

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
fix: do not trim stdout of clang-format process
Otherwise, it always causes a _no newline at the end of file_ problem. Closes #1487 Signed-off-by: Akos Kitta <[email protected]>
1 parent 8a85b5c commit 3a70547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: arduino-ide-extension/src/node/exec-util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function spawnCommand(
6262
});
6363
cp.on('exit', (code, signal) => {
6464
if (code === 0) {
65-
const result = Buffer.concat(outBuffers).toString('utf8').trim();
65+
const result = Buffer.concat(outBuffers).toString('utf8');
6666
resolve(result);
6767
return;
6868
}

0 commit comments

Comments
 (0)