commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (Commented) (JIRA)" <>
Subject [jira] [Commented] (CSV-84) Comment handling
Date Mon, 26 Mar 2012 21:38:32 GMT


Sebb commented on CSV-84:

I don't know if there are formats with inline comments.
The code currently recognises comments at the start of a value as well as at the start of
a record. 
This behaviour may be unintentional.

I agree that empty lines are generally not needed, but a comment line may not be useless.
> Comment handling
> ----------------
>                 Key: CSV-84
>                 URL:
>             Project: Commons CSV
>          Issue Type: New Feature
>            Reporter: Sebb
> Comment handling is not currently fully documented / tested.
> There are several possible situations:
> 1) trailing comment following one or more values
> 2) comment marker starts in the first column
> 3) comment marker starts in the first non-whitespace column
> How should these be handled?
> 1) The trailing comment should be ignored
> 2) Entire line should be ignored, i.e. don't treat it as a blank line
> 3) This is trickier: if whitespace is being trimmed, treat as 2, else treat as 1, i.e.
there is a single value containing whitespace
> It might also be useful to consider returning comments to the application program as
part of CSVRecord.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message