You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
CSV files ending with a commented line without a line-break will result in the commented line as part of the final data.
How to reproduce it:
Parse the example below.
x,y,z
1,2,3
4,5,6
# this is a last line comment without \n
Environment:
Version: 8.80
OS / distro: Linux
Fix should be:
Only perform mData.push_back(row)
// Handle last line without linebreak
if (!cell.empty() || !row.empty())
{
row.push_back(Unquote(Trim(cell)));
cell.clear();
mData.push_back(row);
row.clear();
}
only under the condition !(mLineReaderParams.mSkipCommentLines && (row.at(0)[0] == mLineReaderParams.mCommentPrefix))
The text was updated successfully, but these errors were encountered:
Description:
CSV files ending with a commented line without a line-break will result in the commented line as part of the final data.
How to reproduce it:
Parse the example below.
Environment:
Fix should be:
Only perform
mData.push_back(row)
only under the condition
!(mLineReaderParams.mSkipCommentLines && (row.at(0)[0] == mLineReaderParams.mCommentPrefix))
The text was updated successfully, but these errors were encountered: