Browse Source

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.
Bastien Guerry 12 years ago
parent
commit
019a8dee21
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob-core.el

+ 1 - 1
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)))))))