Explorar o código

ob: fix indentation bug when inserting results from inline code blocks

* lisp/ob.el (org-babel-insert-result): Don't choke if indent is not a number.
Eric Schulte %!s(int64=14) %!d(string=hai) anos
pai
achega
e9cba96b0a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/ob.el

+ 1 - 1
lisp/ob.el

@@ -1557,7 +1557,7 @@ code ---- the results are extracted in the syntax of the source
 	    (org-babel-examplize-region beg end results-switches)
 	    (setq end (point)))))
 	;; possibly indent the results to match the #+results line
-	(when (and (not inlinep) indent (> indent 0)
+	(when (and (not inlinep) (numberp indent) indent (> indent 0)
 		   ;; in this case `table-align' does the work for us
 		   (not (and (listp result)
 			     (member "append" result-params))))