commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CSV-127) Ignore Empty Lines doesn't ignore empty first line
Date Fri, 23 Jan 2015 16:19:35 GMT

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

Brian commented on CSV-127:
---------------------------

I would still like the option of skipping lines of all white space.  The reporting tool we
use generates CSV files with a block of comments, followed by a line with a bunch of white
space (tabs), followed by the header.  I can't parse this automatically with this library
at present - I have to manually go in and remove that white space line from each file.  

> 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.3.4#6332)

Mime
View raw message