Procházet zdrojové kódy

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 před 6 roky
rodič
revize
c28eb3c2cb
1 změnil soubory, kde provedl 1 přidání a 4 odebrání
  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)