[ https://issues.apache.org/jira/browse/CSV-271 ]


    Gary D. Gregory deleted comment on CSV-271:
    -------------------------------------

was (Author: garydgregory):
What is the status here? Should we close ticket?

> 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
>            Priority: Major
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> 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.20.1#820001)

Reply via email to