Forráskód Böngészése

org-latex: Fix export of table.el tables with captions

* lisp/org-latex.el (org-export-latex-convert-table.el-table): Fix
format-string for insertion of captions.

This fixes a bug introduced in caa5da1 since when the caption itself
is not placed inside the caption command.
Lawrence Mitchell 14 éve
szülő
commit
44bb6ef974
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      lisp/org-latex.el

+ 1 - 1
lisp/org-latex.el

@@ -1990,7 +1990,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
       (setq tbl (concat "\\begin{center}\n" tbl "\\end{center}")))
       (setq tbl (concat "\\begin{center}\n" tbl "\\end{center}")))
     (when floatp
     (when floatp
       (setq tbl (concat "\\begin{table}\n"
       (setq tbl (concat "\\begin{table}\n"
-			(format "\\caption%s{%s}%s\n"
+			(format "\\caption%s{%s%s}\n"
 				(if shortn (format "[%s]" shortn) "")
 				(if shortn (format "[%s]" shortn) "")
 				(if label (format "\\label{%s}" label) "")
 				(if label (format "\\label{%s}" label) "")
 				(or caption ""))
 				(or caption ""))