In add_field, we have the following loop:
while (len > 0 && (start[len-1] == ' ' || start[len-1] == '\t')) {
len--;
}
This always runs, meaning that the trailing whitespace of all fields is deleted, there is no code in csv_parser.c to trim leading whitespace.
Note: there is the csv_utils_trim_whitespace function in csv_utils.c that handles this
In
add_field, we have the following loop:This always runs, meaning that the trailing whitespace of all fields is deleted, there is no code in
csv_parser.cto trim leading whitespace.Note: there is the
csv_utils_trim_whitespacefunction incsv_utils.cthat handles this