From 0194fd0cdc5969519b3fbfff1b910bee2a39db30 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Fri, 17 May 2013 14:36:01 -0600 Subject: [PATCH] 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. --- lisp/ob-gnuplot.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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. -- 2.11.4.GIT