Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-127

Ignore Empty Lines doesn't ignore empty first line

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0
    • None
    • None
    • None

    Description

      If parsing a file which has an empty first line and then a header row the empty first line is treated as the header row.

      Parser created like

      CSVParser csvParser = new CSVParser(reader, CSVFormat.DEFAULT.withHeader().withIgnoreSurroundingSpaces(true));
      

      Attachments

        1. CSV-127-ggregory.diff
          17 kB
          Gary D. Gregory
        2. csv-127.patch
          3 kB
          Cody Lerum

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cody.lerum Cody Lerum
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: