From b1179a79c6d72cc0beab6e7fd9774f49ea1bbbae Mon Sep 17 00:00:00 2001 From: Charles Berry Date: Tue, 24 Feb 2015 15:12:53 -0800 Subject: [PATCH] ob-core.el: examplify list made into strings * ob-core.el (org-babel-insert-result): When a list cannot be rendered as a table and is turned into a string make it removable if `:results replace' (the default) or `:results table' was specified. --- lisp/ob-core.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index f2062ef..4be10c1 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -2299,7 +2299,10 @@ INFO may provide the values of these header arguments (in the "{{{results(" ")}}}")) ((and inlinep (member "file" result-params)) (funcall wrap nil nil nil nil "{{{results(" ")}}}")) - ((and (not (funcall proper-list-p result)) + ((and (not (and (funcall proper-list-p result) + (org-every (lambda (e) + (or (atom e) (funcall proper-list-p e))) + result))) (not (member "file" result-params))) (let ((org-babel-inline-result-wrap ;; Hard code {{{results(...)}}} on top of customization. -- 1.9.3 (Apple Git-50)