Browse Source

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.
Eric Schulte 14 years ago
parent
commit
60a8ba556d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lisp/ob.el

+ 3 - 1
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)