rootvector2 opened a new pull request, #623:
URL: https://github.com/apache/commons-csv/pull/623

   `printComment` closes each comment line with `println()`, which appends the 
trailing delimiter when `setTrailingDelimiter(true)` is set. So a multi-line 
comment prints `# line1,` / `# line2,` and the parser reads that delimiter back 
as part of the comment text. Found round-tripping comments through a printer 
with the trailing delimiter enabled.
   
   Close comment lines with the record separator only. The trailing delimiter 
is documented as following the last value of a record, and a comment is not a 
record, so the record and header paths keep calling `println()` and stay 
unchanged.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to