mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-05 00:18:33 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user