From 019a8dee210da5cd0c8bb6baf1a440a7a9037162 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 12 Feb 2013 17:49:06 +0100 Subject: [PATCH] ob-core.el (org-babel-insert-result): Fix bug when inserting an empty string as the result * ob-core.el (org-babel-insert-result): Fix bug when inserting an empty string as the result. --- lisp/ob-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index d15df1ad6..eeda16d8d 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -1967,7 +1967,7 @@ code ---- the results are extracted in the syntax of the source (goto-char end) (insert (concat finish "\n")) (goto-char beg) (insert (concat start "\n")) (unless no-escape - (org-escape-code-in-region (point) end)) + (org-escape-code-in-region (min (point) end) end)) (goto-char end) (goto-char (point-at-eol)) (setq end (point-marker)))) (proper-list-p (lambda (it) (and (listp it) (null (cdr (last it))))))) -- 2.11.4.GIT