Fastfetch: print final new line in --format json

This commit is contained in:
李通洲
2024-03-09 12:07:07 +08:00
parent 1084cf3523
commit 7a6999bd20
+3
View File
@@ -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();
}