[CSV-211] CSVFormat.format trims last delimiter if the delimiter is a

white space #71.
This commit is contained in:
Gary Gregory 2020-05-24 10:25:24 -04:00
parent 3eac15fc8d
commit bc2419915d
2 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@
<action type="update" dev="ggregory" due-to="Chen">Removed invalid Javadoc markup for CSVFormat EXCEL #64.</action>
<action type="update" dev="ggregory" due-to="Chen">Improve CSVRecord and CSVPrinter code coverage #66.</action>
<action type="update" dev="ggregory" due-to="Chen">Improve lexer and token coverage #67.</action>
<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>
</release>
<release version="1.8" date="2020-02-01" description="Feature and bug fix release (Java 8).

View File

@ -30,7 +30,7 @@ public class JiraCsv211Test {
@Test
public void testJiraCsv211Format() throws IOException {
final String[] values = new String[]{"1", "Jane Doe", "USA", ""};
final String[] values = new String[] { "1", "Jane Doe", "USA", "" };
final CSVFormat printFormat = CSVFormat.DEFAULT.withDelimiter('\t').withHeader("ID", "Name", "Country", "Age");
String formatted = printFormat.format(values);