You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Wyraz (Jira)" <ji...@apache.org> on 2021/02/17 16:12:00 UTC

[jira] [Comment Edited] (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=17285939#comment-17285939 ] 

Michael Wyraz edited comment on CSV-271 at 2/17/21, 4:11 PM:
-------------------------------------------------------------

Same with 1.9-SNAPSHOT. I created a testcase for the both scenarios, the array case fails as described:

 

https://github.com/micw/commons-csv/commit/3bf03ee162aa62ee1aa4d79944604f99a48b33bd

(link edited)


was (Author: michael@wyraz.de):
Same with 1.9-SNAPSHOT. I created a testcase for the both scenarios, the array case fails as described:

[https://github.com/micw/commons-csv/commit/57835ccc4ac6e860982da9fb29c200ad2aa242eb]

 

(link edited)

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