You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Amar Prakash Pandey (Jira)" <ji...@apache.org> on 2021/07/03 19:35:00 UTC

[jira] [Commented] (CSV-271) Missing separator with "print(object)" followed by "printRecord(Object[])"

    [ https://issues.apache.org/jira/browse/CSV-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17374123#comment-17374123 ] 

Amar Prakash Pandey commented on CSV-271:
-----------------------------------------

[~ggregory] can I take this up?

> 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
>
> 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)