mergecsv: bug quand left ne contient qu'un seul champ vide

This commit is contained in:
Jephté Clain 2016-02-10 11:45:24 +04:00
parent b548dec8e7
commit a702b8953e
1 changed files with 2 additions and 2 deletions

View File

@ -1448,8 +1448,8 @@ function printmerged(lline, rline, nocopy, linecsv, tmplinecsv) {
} }
linecsv = array_formatcsv(lfields) linecsv = array_formatcsv(lfields)
tmplinecsv = array_formatcsv(rfields) tmplinecsv = array_formatcsv(rfields)
if (tmplinecsv != "") { if (array_len(rfields) > 0) {
if (linecsv != "") linecsv = linecsv "," if (array_len(lfields) > 0) linecsv = linecsv ","
linecsv = linecsv tmplinecsv linecsv = linecsv tmplinecsv
} }
print linecsv print linecsv