Skip to content

Commit bc24199

Browse files
committed
[CSV-211] CSVFormat.format trims last delimiter if the delimiter is a
white space apache#71.
1 parent 3eac15f commit bc24199

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<action type="update" dev="ggregory" due-to="Chen">Removed invalid Javadoc markup for CSVFormat EXCEL #64.</action>
5454
<action type="update" dev="ggregory" due-to="Chen">Improve CSVRecord and CSVPrinter code coverage #66.</action>
5555
<action type="update" dev="ggregory" due-to="Chen">Improve lexer and token coverage #67.</action>
56+
<action issue="CSV-211" type="fix" dev="ggregory" due-to="Alpesh Kulkarni, Chen">CSVFormat.format trims last delimiter if the delimiter is a white space #71.</action>
5657
</release>
5758
<release version="1.8" date="2020-02-01" description="Feature and bug fix release (Java 8).
5859

src/test/java/org/apache/commons/csv/issues/JiraCsv211Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class JiraCsv211Test {
3030

3131
@Test
3232
public void testJiraCsv211Format() throws IOException {
33-
final String[] values = new String[]{"1", "Jane Doe", "USA", ""};
33+
final String[] values = new String[] { "1", "Jane Doe", "USA", "" };
3434

3535
final CSVFormat printFormat = CSVFormat.DEFAULT.withDelimiter('\t').withHeader("ID", "Name", "Country", "Age");
3636
String formatted = printFormat.format(values);

0 commit comments

Comments
 (0)