csv-parser icon indicating copy to clipboard operation
csv-parser copied to clipboard

field_object.type is wrong

Open 8naf opened this issue 3 years ago • 2 comments

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.

8naf avatar Jun 19 '21 06:06 8naf

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?

AriaFallah avatar Jun 21 '21 16:06 AriaFallah

Thanks for the suggestion. Like you, I'm pretty busy too, but if I find something I'll let you know.

8naf avatar Jun 26 '21 06:06 8naf