From a8234eb7f1a34785711bacef46ad8dc4e3c1e390 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sun, 26 Feb 2012 10:09:23 -0700 Subject: [PATCH] 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. --- lisp/org-latex.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 905779750..8146ab104 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -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)