Fixed CLI show config JSON pretty-print, removed too many spaces

Test: added CLI show config tests for prett-print and cli_show_config()
This commit is contained in:
Olof hagsand 2022-10-31 11:26:53 +01:00
parent c93f264215
commit 1830381249
2 changed files with 39 additions and 4 deletions

View file

@ -1239,7 +1239,12 @@ xml2json_cbuf_vec(cbuf *cb,
if (xml2json1_cbuf(cb,
xp,
NO_ARRAY,
level+1, pretty,
#if 1
level,
#else
level+1,
#endif
pretty,
1, NULL, NULL) < 0)
goto done;