From a702b8953e2801263f19ef9facf2497531599169 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Wed, 10 Feb 2016 11:45:24 +0400 Subject: [PATCH] mergecsv: bug quand left ne contient qu'un seul champ vide --- lib/ulib/awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ulib/awk b/lib/ulib/awk index 15bb948..63afe19 100644 --- a/lib/ulib/awk +++ b/lib/ulib/awk @@ -1448,8 +1448,8 @@ function printmerged(lline, rline, nocopy, linecsv, tmplinecsv) { } linecsv = array_formatcsv(lfields) tmplinecsv = array_formatcsv(rfields) - if (tmplinecsv != "") { - if (linecsv != "") linecsv = linecsv "," + if (array_len(rfields) > 0) { + if (array_len(lfields) > 0) linecsv = linecsv "," linecsv = linecsv tmplinecsv } print linecsv