[
https://issues.apache.org/jira/browse/CSV-148?focusedWorklogId=433589&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-433589
]
ASF GitHub Bot logged work on CSV-148:
--------------------------------------
Author: ASF GitHub Bot
Created on: 15/May/20 07:45
Start Date: 15/May/20 07:45
Worklog Time Spent: 10m
Work Description: dota17 opened a new pull request #70:
URL: https://github.com/apache/commons-csv/pull/70
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 433589)
Remaining Estimate: 0h
Time Spent: 10m
> CSVFormat.ignoreSurroundingSpaces is ignored when printing
> ----------------------------------------------------------
>
> Key: CSV-148
> URL: https://issues.apache.org/jira/browse/CSV-148
> Project: Commons CSV
> Issue Type: Bug
> Components: Printer
> Affects Versions: 1.1
> Environment: JDK 1.7
> Reporter: Piotr Ciruk
> Priority: Minor
> Fix For: Review
>
> Attachments: commons-csv_CSV-148.patch, commons-csv_CSV-148.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> It seems that {{CSVFormat}}'s property {{ignoreSurroundingSpaces}} is not
> taken into consideration while printing out values using {{CSVPrinter}}.
> Given:
> {code}
> System.out.println(
> CSVFormat.DEFAULT
> .withIgnoreSurroundingSpaces(true)
> .format("",
> " ",
> " Single space on the left",
> "Single space on the right ",
> " Single spaces on both sides ",
> " Multiple spaces on the left",
> "Multiple spaces on the right ",
> " Multiple spaces on both sides ")
> );
> {code}
> Actual result:
> {code}
> ""," "," Single space on the left","Single space on the right "," Single
> spaces on both sides "," Multiple spaces on the left","Multiple spaces on
> the right "," Multiple spaces on both sides "
> {code}
> Expected result:
> {code}
> "","","Single space on the left","Single space on the right","Single spaces
> on both sides","Multiple spaces on the left","Multiple spaces on the
> right","Multiple spaces on both sides"
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)