ne quoter que les valeurs existantes

This commit is contained in:
Jephté Clain 2015-02-25 11:45:38 +04:00
parent 94bef1d7b1
commit adff6475d1
2 changed files with 5 additions and 4 deletions

View File

@ -1 +1 @@
007021000
007021001

View File

@ -679,7 +679,6 @@ function dump_values(atbegin, value) {
attr = norm_attr(attrs[i])
if (i > 1) line = line asep
value = values[attr]
if (value == "") value = qempty
if (qsep != "" && index(value, qsep) != 0) {
if (escape) gsub(qsep, quote_subrepl(escape) "&", value);
else gsub(qsep, "&&", value);
@ -726,10 +725,12 @@ $0 != "" && match_attr($1) {
values[attr] = "(" tmp ")"
}
} else {
if (value == "") value = qempty
value = quote_vsep(value, vsep)
if (values[attr] == "") {
values[attr] = quote_vsep(value, vsep)
values[attr] = value
} else {
values[attr] = values[attr] vsep quote_vsep(value, vsep)
values[attr] = values[attr] vsep value
}
}
}