# HG changeset patch # User Matti Hamalainen # Date 1578327230 -7200 # Node ID 158f4f613787a7beb5d02678dd3e7aba0b986724 # Parent 04917c170c2329e7e756c4161300a6aeac0182e7 Call siPrintFieldSeparator() separately instead from inside siPrintPSIDInfoLine() diff -r 04917c170c23 -r 158f4f613787 sidinfo.c --- a/sidinfo.c Mon Jan 06 15:40:15 2020 +0200 +++ b/sidinfo.c Mon Jan 06 18:13:50 2020 +0200 @@ -959,8 +959,6 @@ if ((str = siItemFormatStrPrint(fmt, otype, tmp, d_int)) != NULL) fputs(str, outFile); - siPrintFieldSeparator(outFile); - th_free(str); th_free(tmp); @@ -971,11 +969,13 @@ #define PRS(d_str, d_conv) do { \ siPrintFieldPrefix(outFile, opt); \ siPrintPSIDInfoLine(outFile, shown, siGetInfoFormat(item, opt->type), opt->type, d_str, -1, d_conv); \ + siPrintFieldSeparator(outFile); \ } while (0) #define PRI(d_int) do { \ siPrintFieldPrefix(outFile, opt); \ siPrintPSIDInfoLine(outFile, shown, siGetInfoFormat(item, opt->type), opt->type, NULL, d_int, FALSE); \ + siPrintFieldSeparator(outFile); \ } while (0) @@ -1093,6 +1093,7 @@ OTYPE_STR, node->fields[nfield].data[nitem], -1, TRUE); + siPrintFieldSeparator(outFile); } } }