diff options
author | Bastien Guerry <bzg@altern.org> | 2013-02-12 17:49:06 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-02-12 17:49:06 +0100 |
commit | 019a8dee210da5cd0c8bb6baf1a440a7a9037162 (patch) | |
tree | b52014847259f0588ce0665ccffd63cd9171470a | |
parent | d38f79be97c0873df661c6741de7d0796a756c16 (diff) | |
download | org-mode-019a8dee210da5cd0c8bb6baf1a440a7a9037162.tar.gz |
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.
-rw-r--r-- | lisp/ob-core.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-core.el b/lisp/ob-core.el index d15df1a..eeda16d 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))))))) |