summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2011-02-27 14:29:01 -0700
committerEric Schulte <schulte.eric@gmail.com>2011-02-27 14:29:01 -0700
commitcfcf493c2903ecdfc1b77d2695add34fc64a7a23 (patch)
treecca532a55d5e81019b68e672b919db93065b7177
parent1d1654896e6bb617d29d12c8fc041001ae0f506d (diff)
downloadorg-mode-cfcf493c2903ecdfc1b77d2695add34fc64a7a23.tar.gz
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.
-rw-r--r--lisp/ob.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index 18cae37..36440c2 100644
--- a/lisp/ob.el
+++ b/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))