[ 
https://issues.apache.org/jira/browse/CSV-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113866#comment-14113866
 ] 

Gary Gregory commented on CSV-127:
----------------------------------

[~cody.lerum]: What is the use case?

[[email protected]] asks on the ML:

{quote}
What is the use case for ignoring an initial blank/empty line?
Is there a common app that creates such output?

Are there other CSV output formats that have unwanted data before the
column names?
If so, maybe it would be useful to provide a means of skipping N lines
before reading the column names.
{quote}


> Ignore Empty Lines doesn't ignore empty first line
> --------------------------------------------------
>
>                 Key: CSV-127
>                 URL: https://issues.apache.org/jira/browse/CSV-127
>             Project: Commons CSV
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: Cody Lerum
>         Attachments: CSV-127-ggregory.diff, csv-127.patch
>
>
> 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
> {code}
> CSVParser csvParser = new CSVParser(reader, 
> CSVFormat.DEFAULT.withHeader().withIgnoreSurroundingSpaces(true));
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to