Don't add spurious preceding newline if caption is not above a longtable

* lisp/org-latex.el (org-export-latex-tables): Don't add spurious
  preceding newline if caption is not above a longtable.
This commit is contained in:
Eric Schulte 2012-02-26 10:09:23 -07:00
parent 580218709b
commit a8234eb7f1
1 changed files with 2 additions and 1 deletions

View File

@ -1988,7 +1988,8 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
(if shortn (concat "[" shortn "]") "")
(or caption "")
(if label (format "\\label{%s}" label) "")))
(if (and longtblp caption) "\\\\\n" "\n")
(if (and longtblp caption org-export-latex-table-caption-above)
"\\\\\n" "\n")
(if (and org-export-latex-tables-centered (not longtblp))
"\\begin{center}\n")
(if (not longtblp)