diff --git a/src/fastfetch.c b/src/fastfetch.c index 07220e0ba..7a8f8d7ff 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -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(); }