summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2011-03-02 07:55:39 -0700
committerEric Schulte <schulte.eric@gmail.com>2011-03-02 07:55:39 -0700
commit60a8ba556d682849eafb0f84e689967cd2965549 (patch)
treecd0f65dfe63910fb1a08844e2ba3e708d0838c75
parentc6fd3f1a8ba8f93bb397430417a610df1627f30d (diff)
downloadorg-mode-60a8ba556d682849eafb0f84e689967cd2965549.tar.gz
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.
-rw-r--r--lisp/ob.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index 3cd9336..9e931b4 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -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)