diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-01-19 16:05:12 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-01-19 16:05:12 +0100 |
commit | c28eb3c2cb904666594e40c1dcae4437d954bde4 (patch) | |
tree | b12e9d1c40b1ac25b8c29da5cb4c6b5b771e5eed | |
parent | e7901c3aec862016c865efbc8603eb626e53f8ab (diff) | |
download | org-mode-c28eb3c2cb904666594e40c1dcae4437d954bde4.tar.gz |
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>
-rw-r--r-- | lisp/ox-latex.el | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 8e7ce60..998226e 100644 --- a/lisp/ox-latex.el +++ b/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) |