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 <a.kitta@arduino.cc>
This commit is contained in:
Akos Kitta 2022-11-03 17:58:43 +01:00 committed by Akos Kitta
parent 8a85b5c3d8
commit 3a70547770

View File

@ -62,7 +62,7 @@ export function spawnCommand(
});
cp.on('exit', (code, signal) => {
if (code === 0) {
const result = Buffer.concat(outBuffers).toString('utf8').trim();
const result = Buffer.concat(outBuffers).toString('utf8');
resolve(result);
return;
}