mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Fastfetch: print final new line in --format json
This commit is contained in:
@@ -824,7 +824,10 @@ static void run(FFdata* data)
|
||||
ffPrintCommandOption(data, instance.state.resultDoc);
|
||||
|
||||
if (instance.state.resultDoc)
|
||||
{
|
||||
yyjson_mut_write_fp(stdout, instance.state.resultDoc, YYJSON_WRITE_INF_AND_NAN_AS_NULL | YYJSON_WRITE_PRETTY_TWO_SPACES, NULL, NULL);
|
||||
putchar('\n');
|
||||
}
|
||||
else
|
||||
ffFinish();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user