Michael Wyraz created CSV-271:
---------------------------------
Summary: Missing separator with "print(object)" followed by
"printRecord(Object[])"
Key: CSV-271
URL: https://issues.apache.org/jira/browse/CSV-271
Project: Commons CSV
Issue Type: Bug
Components: Printer
Affects Versions: 1.8
Reporter: Michael Wyraz
Hello,
the following code produces CSV with a missing separator:
{code:java}
CSVPrinter csv=new CSVPrinter(new
OutputStreamWriter(System.out,StandardCharsets.UTF_8),CSVFormat.DEFAULT);
csv.print("a");
csv.printRecord("b","c");{code}
This produces "ab,c".
The corresponding function that takes a list, works properly:
{code:java}
csv.print("a");
csv.printRecord(Arrays.asList("b","c"));{code}
Produces "a,b,c" as expected
--
This message was sent by Atlassian Jira
(v8.3.4#803005)