From ba835346a523ad49ab1100e21c6e2db6fc982777 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Tue, 29 Dec 2020 14:06:19 +0100 Subject: [PATCH] cli-pagination --- apps/cli/cli_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/cli/cli_common.c b/apps/cli/cli_common.c index 277703d6..f3724990 100644 --- a/apps/cli/cli_common.c +++ b/apps/cli/cli_common.c @@ -1361,8 +1361,7 @@ cli_pagination(clicon_handle h, cvec *vars, cvec *argv) while ((xc = xml_child_each(xret, xc, CX_ELMNT)) != NULL) switch (format){ case FORMAT_XML: - clicon_xml2file(stdout, xc, 0, 0); - fprintf(stdout, "\n"); + clicon_xml2file_cb(stdout, xc, 0, 1, cligen_output); break; case FORMAT_JSON: xml2json_cb(stdout, xc, 1, cligen_output);