We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example.csv id,name 1,hello 2,"" Three lines in total. Last line without line break.
I try to get all rows of this csv file. And i found the last line is ignored.
The text was updated successfully, but these errors were encountered:
Can i fix it in this way?
CSV_INLINE void IBasicCSVParser::end_feed() { using internals::ParseFlags;
bool empty_last_field = this->data_ptr && this->data_ptr->_data && !this->data_ptr->data.empty() && (parse_flag(this->data_ptr->data.back()) == ParseFlags::DELIMITER || compound_parse_flag(this->data_ptr->data.back()) == ParseFlags::QUOTE_ESCAPE_QUOTE); // Push field if (this->field_length > 0 || empty_last_field) { this->push_field(); } // Push row if (this->current_row.size() > 0) this->push_row(); }
Sorry, something went wrong.
Fixed issue where empty last fields were not read
44ba3e7
Reported by #151
Thanks for your report. This was fixed in the latest commit.
vincentlaucsb
No branches or pull requests
example.csv
id,name
1,hello
2,""
Three lines in total.
Last line without line break.
I try to get all rows of this csv file. And i found the last line is ignored.
The text was updated successfully, but these errors were encountered: