summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2010-11-27 17:51:46 -0700
committerEric Schulte <schulte.eric@gmail.com>2010-11-27 17:51:46 -0700
commitc3b7eca19310cd9075a659cb680f360487f7fff3 (patch)
tree069c9dfaac4b99c11d9fbd267b7e1bb1d7caee7e
parent994e1648e2f99bf408c5ca0739bd6dcd0764f7cb (diff)
downloadorg-mode-c3b7eca19310cd9075a659cb680f360487f7fff3.tar.gz
ob: fixed newly introduced empty result error
* lisp/ob.el (org-babel-examplize-region): Remove old assertion which no longer applies to the result insertion code.
-rw-r--r--lisp/ob.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index 2feb1ae..603854c 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -1549,9 +1549,7 @@ file's directory then expand relative links."
(interactive "*r")
(let ((size (count-lines beg end)))
(save-excursion
- (cond ((= size 0)
- (error (concat "This should not be impossible:"
- "a newline was appended to result if missing")))
+ (cond ((= size 0)) ; do nothing for an empty result
((< size org-babel-min-lines-for-block-output)
(goto-char beg)
(dotimes (n size)