From 3a8969edbcea3f053c0bd936fafadf1a01a2aa16 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Sat, 18 Aug 2012 21:03:49 +0530 Subject: [PATCH] org-e-html-table: Emit `caption' elements only when required --- contrib/lisp/org-e-html.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/lisp/org-e-html.el b/contrib/lisp/org-e-html.el index 1c06005f9..4e9d39828 100644 --- a/contrib/lisp/org-e-html.el +++ b/contrib/lisp/org-e-html.el @@ -2835,10 +2835,9 @@ contextual information." (org-export-solidify-link-text label))))))) ;; Remove last blank line. (setq contents (substring contents 0 -1)) - ;; FIXME: splice - (format "\n%s\n%s\n%s\n" + (format "\n%s\n%s\n%s\n" table-attributes - (or caption "") + (if (not caption) "" (format "%s" caption)) (funcall table-column-specs table info) contents))))) -- 2.11.4.GIT