Description
It seems that CSVFormat's property ignoreSurroundingSpaces is not taken into consideration while printing out values using CSVPrinter.
Given:
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 ") );
Actual result:
""," "," 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 "
Expected result:
"","","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"
Attachments
Attachments
Issue Links
- links to