@ -829,7 +829,10 @@ NR <= skip_lines { next }
$0 = ""
for (i = 1; i <= headers_count; i++) {
value = substr(line, starts[i], sizes[i])
if (trim_values) sub(/ *$/, "", value)
if (trim_values) {
sub(/^ */, "", value)
sub(/ *$/, "", value)
}
$i = value
formatcsv()