Преглед на файлове

more robust to code blocks with empty bodies
* lisp/ob.el (org-babel-parse-src-block-match): More robust to code
blocks with empty bodies.

Eric Schulte преди 14 години
родител
ревизия
0037ef9261
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lisp/ob.el

+ 1 - 1
lisp/ob.el

@@ -1024,7 +1024,7 @@ may be specified in the current buffer."
 		  (if (and (> sub-length 0)
 			   (string= "\n" (substring body sub-length)))
 		      (substring body 0 sub-length)
-		    body))))
+		    (or body "")))))
 	 (preserve-indentation (or org-src-preserve-indentation
 				   (string-match "-i\\>" switches))))
     (list lang