Procházet zdrojové kódy

babel: fixed small input error related to empty tables

Eric Schulte před 14 roky
rodič
revize
0a6a5b4fae
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lisp/ob.el

+ 1 - 1
lisp/ob.el

@@ -1073,7 +1073,7 @@ code ---- the results are extracted in the syntax of the source
 					  (listp (cdr (car result)))))
 				 result (list result))
 			     '(:fmt (lambda (cell) (format "%s" cell)))) "\n"))
-	    (goto-char beg) (org-table-align))
+	    (goto-char beg) (when (org-at-table-p) (org-table-align)))
 	   ((member "file" result-params)
 	    (insert result))
 	   ((member "html" result-params)