diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2013-05-17 14:36:01 -0600 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2013-05-17 14:36:10 -0600 |
commit | 0194fd0cdc5969519b3fbfff1b910bee2a39db30 (patch) | |
tree | 703f64b13a9e5435d2ba0d1083cc5377a4a3741e | |
parent | 0d68eef0372b6b57359a49cb5e35b67c651c5ee2 (diff) | |
download | org-mode-0194fd0cdc5969519b3fbfff1b910bee2a39db30.tar.gz |
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.
-rw-r--r-- | lisp/ob-gnuplot.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot.el index 80b0bef..e7da3f6 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. |