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

The code fails to read last line of csv if it doesn't contain a carriage return of some sort.

Open EdBreen opened this issue 3 years ago • 1 comments

To fix this problem

Change

else if (!inquotes && (c == '\r' || c == '\n'))

to

else if (!inquotes && (c == '\r' || c == '\n' || in.eof()))

:)

EdBreen avatar Jan 23 '23 21:01 EdBreen

Hi @EdBreen,

why don´t you open up a merge request ?

Kind regards,

Florian

fwuehr95 avatar Feb 08 '23 15:02 fwuehr95