changeset 276:158f4f613787

Call siPrintFieldSeparator() separately instead from inside siPrintPSIDInfoLine()
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Jan 2020 18:13:50 +0200
parents 04917c170c23
children a23dae1a4849
files sidinfo.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
                     }
                 }
             }