浏览代码

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 年之前
父节点
当前提交
cfcf493c29
共有 1 个文件被更改,包括 1 次插入1 次删除
  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))