[
https://issues.apache.org/jira/browse/CSV-148?focusedWorklogId=433590&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-433590
]
ASF GitHub Bot logged work on CSV-148:
--------------------------------------
Author: ASF GitHub Bot
Created on: 15/May/20 07:48
Start Date: 15/May/20 07:48
Worklog Time Spent: 10m
Work Description: coveralls commented on pull request #70:
URL: https://github.com/apache/commons-csv/pull/70#issuecomment-629086745
[](https://coveralls.io/builds/30808341)
Coverage remained the same at 98.507% when pulling
**de441b83676172e194ea5856762062763897d17a on dota17:JiraCsv148** into
**57c77341d42f54b71018931dd4f389d507a30a3c on apache:master**.
----------------------------------------------------------------
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: 433590)
Time Spent: 20m (was: 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: 20m
> 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)