Browse Source

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.
Eric Schulte 14 năm trước cách đây
mục cha
commit
c3b7eca193
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      lisp/ob.el

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