Skip to content
New issue

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

when the final char of file is ',' that will miss a @"" field #16

Closed
bmanGH opened this issue Oct 10, 2012 · 1 comment
Closed

when the final char of file is ',' that will miss a @"" field #16

bmanGH opened this issue Oct 10, 2012 · 1 comment

Comments

@bmanGH
Copy link

bmanGH commented Oct 10, 2012

my temporary fix is add follow code to the end of - (void) runParseLoop

if ([currentField length] > 0 && state == CHCSVParserStateInsideField) {
    [self finishCurrentField];
}
if (state == CHCSVParserStateInsideLine) {
    // temporary fix: when the final char of file is ',' that will miss a @"" field
    if ([currentField length] > 0) {
        [self finishCurrentField];
    }
    [self finishCurrentLine];
}
@davedelong
Copy link
Owner

This appears to be fixed in the 2.0.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants