浏览代码

replace missing values with blank space in gnuplot

* lisp/ob-gnuplot.el (org-babel-gnuplot-quote-tsv-field): Replace
  missing values with blank space in gnuplot.
Eric Schulte 12 年之前
父节点
当前提交
aae20884c1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lisp/ob-gnuplot.el

+ 2 - 2
lisp/ob-gnuplot.el

@@ -232,8 +232,8 @@ then create one.  Return the initialized session.  The current
   (if (string-match org-table-number-regexp s) s
     (if (string-match org-ts-regexp3 s)
 	(org-babel-gnuplot-quote-timestamp-field s)
-      (if (and *org-babel-gnuplot-missing* (zerop (length s)))
-	  *org-babel-gnuplot-missing*
+      (if (zerop (length s))
+	  (or *org-babel-gnuplot-missing* s)
 	(concat "\"" (mapconcat 'identity (split-string s "\"") "\"\"")
 		"\"")))))