Browse Source

ox-latex: Fix export of tables with caption

* lisp/ox-latex.el (org-latex--decorate-table): Fix thinko.

Reported-by: Jens Lechtenboerger <lechten@wi.uni-muenster.de>
<http://lists.gnu.org/r/emacs-orgmode/2019-01/msg00262.html>
Nicolas Goaziou 1 year ago
parent
commit
c28eb3c2cb
1 changed files with 1 additions and 4 deletions
  1. 1 4
      lisp/ox-latex.el

+ 1 - 4
lisp/ox-latex.el

@@ -3153,10 +3153,7 @@ Return new environment, as a string."
 	    (cond ((and (not float) (plist-member attributes :float)) nil)
 		  ((member float '("sidewaystable" "sideways")) "sidewaystable")
 		  ((equal float "multicolumn") "table*")
-		  ((or float
-		       (org-element-property :caption table)
-		       (org-string-nw-p (plist-get attributes :caption)))
-		   "table")
+		  ((or float caption) "table")
 		  (t nil))))
 	 (placement
 	  (or (plist-get attributes :placement)