[
https://issues.apache.org/jira/browse/CSV-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Bourg moved SANDBOX-153 to CSV-1:
------------------------------------------
Component/s: (was: CSV)
Parser
Key: CSV-1 (was: SANDBOX-153)
Project: Commons CSV (was: Commons Sandbox)
> Delimiter should be never recognized as whitespace
> --------------------------------------------------
>
> Key: CSV-1
> URL: https://issues.apache.org/jira/browse/CSV-1
> Project: Commons CSV
> Issue Type: Bug
> Components: Parser
> Reporter: Markus Rogg
>
> The CSV-Parser ignores whitespaces at the beginning of a token. If the
> delimiter is a tabspace and data has no encapsulator the parser loses the
> empty tokens. The parser should never recognize a delimiter as a whitespace.
> A possible solution for the class CSVParser is to change the method
> isWhitespace(int) :
> private boolean isWhitespace(int c) {
> return Character.isWhitespace((char) c) && (c != strategy.getDelimiter());
> }
--
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