Menu

#14 ParserUtils.isMultiLine breaks with CSV

open
None
5
2012-02-29
2012-02-26
Hedayet
No

FlatPack 3.2.0: I've a CSV file with peculiar data - each line ends with a ," combination. But due to the logic in isMultiLine (lines 563-578), the parser picks up two consecutive lines. The comment has following:

// we have determined that the last char on the line is a qualifier.
// This most likely means
// that this is not multiline, however we must account for the
// following scenario
// data,data,"
// data
// /data"

But the example is not good enough, what if the scenario is

line1, data, "data,"
line2, "more, data", "still more data,,,"

The problem file is attached.

Discussion

  • Hedayet

    Hedayet - 2012-02-26

    FlatPack-3.2.0 fails to properly parse this file

     
  • Hedayet

    Hedayet - 2012-02-29
    • assigned_to: nobody --> zepernick
     

Log in to post a comment.