>From 38a3ae8cf8716af0db87a47a421b6d5af654d045 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 10 Aug 2010 22:43:35 +0200 Subject: [PATCH] Fix empty label bug * org-latex.el (org-export-latex-tables): Return "" instead of nil when no label is attached. --- lisp/org-latex.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 056f1b3..b0ba939 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1683,7 +1683,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER." "\\caption%s{%s} %s" (if shortn (concat "[" shortn "]") "") (or caption "") - (when label (format "\\label{%s}" label)))) + (if label (format "\\label{%s}" label) ""))) (if (and longtblp caption) "\\\\\n" "\n") (if (and org-export-latex-tables-centered (not longtblp)) "\\begin{center}\n") -- 1.7.2.1