[ https://issues.apache.org/jira/browse/CSV-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238484#comment-13238484 ]
Emmanuel Bourg commented on CSV-77: ----------------------------------- Section 2.4 relates to a field value, but a blank line doesn't contain any field. I agree this is open to interpretation. Ignoring blank lines is probably the best default behavior. I often see csv files with leading blank lines (because they were generated by a JSP for example) or trailing blank lines. Getting an empty record in these cases is never desirable. Regarding the trimming of values, I agree this should not be part of the default format. > RFC 4180 (DEFAULT) format is wrong; should not ignore spaces or blank lines > --------------------------------------------------------------------------- > > Key: CSV-77 > URL: https://issues.apache.org/jira/browse/CSV-77 > Project: Commons CSV > Issue Type: Bug > Reporter: Sebb > > According to the RFC [1]: > Section 2.4 > {quote} > ... Spaces are considered part > of a field and should not be ignored. > {quote} > Also, the RFC does not mention that blank lines are to be ignored. > However, some of the alternate CSV "specifications" referenced by RFC 4180 do > say that spaces are ignored. > I've not yet found a mention to say that blank lines are to be ignored. > [1] http://tools.ietf.org/html/rfc4180 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira