LaTeX export: Fix line end after caption command for longtable environments

This commit is contained in:
Carsten Dominik 2009-12-17 10:57:42 +01:00
parent e0e2d98378
commit 30d179c85e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-12-17 Carsten Dominik <carsten.dominik@gmail.com>
* org-latex.el (org-export-latex-tables): No forced line end if
there is no caption.
2009-12-16 Carsten Dominik <carsten.dominik@gmail.com> 2009-12-16 Carsten Dominik <carsten.dominik@gmail.com>
* org-exp.el (org-html-entities): Add Euro symbols from Marvosym * org-exp.el (org-html-entities): Add Euro symbols from Marvosym

View File

@ -1538,7 +1538,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
"\\caption{%s%s}" "\\caption{%s%s}"
(if label (concat "\\\label{" label "}") "") (if label (concat "\\\label{" label "}") "")
(or caption ""))) (or caption "")))
(if longtblp "\\\\\n" "\n") (if (and longtblp caption) "\\\\\n" "\n")
(if (and org-export-latex-tables-centered (not longtblp)) (if (and org-export-latex-tables-centered (not longtblp))
"\\begin{center}\n") "\\begin{center}\n")
(if (not longtblp) (concat "\\begin{tabular}{" align "}\n")) (if (not longtblp) (concat "\\begin{tabular}{" align "}\n"))