help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exporting nested list to CSV file


From: Nicolas Richard
Subject: Re: exporting nested list to CSV file
Date: Wed, 23 Jul 2014 08:19:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux)

Christopher Howard <address@hidden> writes:
> (defun csv-quote-field (data)
>   (mapconcat
>    'identity
>    `("\""
>      ,(s-replace-all
>        '(("\"" . "\"\"")) data)
>      "\"") ""))

aka
(defun csv-quote-field (data)
  (format "\"%s\"" (s-replace-all '(("\"" . "\"\"")) data)))
IIUC.

-- 
Nico.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]