ob: read string variable values wrapped in double quotes, removing the quotes

* lisp/ob.el (org-babel-read): Read string variable values wrapped in
  double quotes, removing the quotes.
This commit is contained in:
Eric Schulte 2011-03-02 07:55:39 -07:00
parent c6fd3f1a8b
commit 60a8ba556d
1 changed files with 3 additions and 1 deletions

View File

@ -1924,7 +1924,9 @@ appropriate."
(if (and (not inhibit-lisp-eval)
(member (substring cell 0 1) '("(" "'" "`" "[")))
(eval (read cell))
(progn (set-text-properties 0 (length cell) nil cell) cell)))
(if (string= (substring cell 0 1) "\"")
(read cell)
(progn (set-text-properties 0 (length cell) nil cell) cell))))
cell))
(defun org-babel-number-p (string)