[ 
https://issues.apache.org/jira/browse/CSV-148?focusedWorklogId=445302&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-445302
 ]

ASF GitHub Bot logged work on CSV-148:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Jun/20 08:40
            Start Date: 13/Jun/20 08:40
    Worklog Time Spent: 10m 
      Work Description: coveralls edited a comment on pull request #70:
URL: https://github.com/apache/commons-csv/pull/70#issuecomment-629086745


   
   [![Coverage 
Status](https://coveralls.io/builds/31431542/badge)](https://coveralls.io/builds/31431542)
   
   Coverage remained the same at 98.506% when pulling 
**4a149e550f2f4f33d096e8a8914c363cad6da689 on dota17:JiraCsv148** into 
**9b3046e6d9e0923202160055f4ab197e630ba1c4 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: 445302)
    Time Spent: 0.5h  (was: 20m)

> 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: 0.5h
>  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)

Reply via email to