Explorar o código

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 %!s(int64=14) %!d(string=hai) anos
pai
achega
cfcf493c29
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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))