Quellcode durchsuchen

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 vor 15 Jahren
Ursprung
Commit
c3b7eca193
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  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)