csv-parser
csv-parser copied to clipboard
field_object.type is wrong
Sorry, my English is not good.
I have a csv file with two empty lines.
when I run the below code:
auto field = csv.next_field();
std::cout << (field.type == FieldType::DATA) << std::endl;
The result is 1 (true)
.
I think field.type
should be FieldType::ROW_END
instead of FieldType::DATA
.
Thanks for the bug report @8NAF. Your english is great :). Regarding the bug, I don't have a ton of time to investigate why this is happening or to fix it. Do you want to try figuring out what's going wrong?
Thanks for the suggestion. Like you, I'm pretty busy too, but if I find something I'll let you know.