Added final \n to JSON pretty-print output
This was a correction of fix to: [CLI Show config JSON with multiple top-level elements is broken](https://github.com/clicon/clixon/issues/381)
This commit is contained in:
parent
83f71529d7
commit
c93f264215
2 changed files with 1 additions and 14 deletions
|
|
@ -1344,9 +1344,7 @@ xml2json_vec(FILE *f,
|
|||
}
|
||||
if (xml2json_cbuf_vec(cb, vec, veclen, pretty, skiptop) < 0)
|
||||
goto done;
|
||||
fprintf(f, "%s", cbuf_get(cb));
|
||||
if (!pretty)
|
||||
fprintf(f, "\n");
|
||||
fprintf(f, "%s\n", cbuf_get(cb));
|
||||
retval = 0;
|
||||
done:
|
||||
if (cb)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue