Browse Source

ob: If escaped return value doesn't parse cleanly, then return it literally.

* lisp/ob.el (org-babel-script-escape): If script escaped value
  doesn't parse cleanly, then return it literally.
Eric Schulte 14 years ago
parent
commit
cfcf493c29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob.el

+ 1 - 1
lisp/ob.el

@@ -1875,7 +1875,7 @@ block but are passed literally to the \"example-block\"."
 (defun org-babel-script-escape (str)
   "Safely convert tables into elisp lists."
   (let (in-single in-double out)
-    (org-babel-read
+    ((lambda (escaped) (condition-case nil (org-babel-read escaped) (error escaped)))
      (if (and (stringp str)
 	      (> (length str) 2)
 	      (string-equal "[" (substring str 0 1))