Closed erezvas closed 2 years ago
Did you encounter problems because of this? (As they say: If it ain't broke, don't fix it)
Yeap, it caused me problems. and making this change solved the problems for me.
Were you perchance running your code on a Windows machine (\n\r line endings)?
It seems to me there's an issue with the calculation of position and line length.
In CsvRandomAccessReader._get_line_data, it should be:
Instead of :
Otherwise you're not taking into account the end-of-line character, and not counting the character in the start position in the line length calculation.