From: Eric Schulte Date: Fri, 17 May 2013 20:36:01 +0000 (-0600) Subject: only wrap gnuplot data values in " when necessary X-Git-Tag: release_8.1~209 X-Git-Url: https://repo.or.cz/w/org-mode.git/commitdiff_plain/0194fd0cdc5969519b3fbfff1b910bee2a39db30 only wrap gnuplot data values in " when necessary * lisp/ob-gnuplot.el (org-babel-gnuplot-quote-tsv-field): Only wrap gnuplot data values in " when necessary. --- diff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot.el index 80b0bef96..e7da3f670 100644 --- a/lisp/ob-gnuplot.el +++ b/lisp/ob-gnuplot.el @@ -234,8 +234,10 @@ then create one. Return the initialized session. The current (org-babel-gnuplot-quote-timestamp-field s) (if (zerop (length s)) (or *org-babel-gnuplot-missing* s) - (concat "\"" (mapconcat 'identity (split-string s "\"") "\"\"") - "\""))))) + (if (string-match "[ \"]" "?") + (concat "\"" (mapconcat 'identity (split-string s "\"") "\"\"") + "\"") + s))))) (defun org-babel-gnuplot-table-to-data (table data-file params) "Export TABLE to DATA-FILE in a format readable by gnuplot.