X-Received: by 10.66.122.69 with SMTP id lq5mr14867392pab.17.1395230265870; Wed, 19 Mar 2014 04:57:45 -0700 (PDT) X-Received: by 10.140.96.229 with SMTP id k92mr166853qge.4.1395230265770; Wed, 19 Mar 2014 04:57:45 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!l13no8279269iga.0!news-out.google.com!du2ni7482qab.0!nntp.google.com!w5no6196271qac.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ruby Date: Wed, 19 Mar 2014 04:57:45 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=77.125.75.44; posting-account=Dig0aQoAAAAMSbE8tI8hxn0-1tNHIKtA NNTP-Posting-Host: 77.125.75.44 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6b7782d2-d135-4e0d-8b63-a67d7bb16fa5@googlegroups.com> Subject: Empty quote char in FasterCSV From: Romiras Injection-Date: Wed, 19 Mar 2014 11:57:45 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.ruby:6935 I have to generate a file with values separated with semicolon. There are empty values for which "" is unwanted. For example, this code FasterCSV.generate({:col_sep => ";"}) { |csv| csv << ["another", "", "row"] } generates the following output: another;"";row As you see, "" is unwanted in output. The wanted output is another;;row I tried to accomplish it using :quote_char with the following code: FasterCSV.generate({:col_sep => ";", :quote_char=>""}) { |csv| csv << ["another", "", "row"] } Is there a way to omit empty ""?