diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 9e4c8b1..4d73fcc 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -1999,7 +1999,8 @@ code ---- the results are extracted in the syntax of the source (setq end (point-marker)) ;; possibly wrap result (cond - ((assoc :wrap (nth 2 info)) + ((and (assoc :wrap (nth 2 info)) + (cdr (assoc :wrap (nth 2 info)))) (let ((name (or (cdr (assoc :wrap (nth 2 info))) "RESULTS"))) (funcall wrap (concat "#+BEGIN_" name) (concat "#+END_" (car (org-split-string name))))))