From 449cfb3cb93a14c58591df15f4a5ff8c7fe1a72a Mon Sep 17 00:00:00 2001 From: Vladimir Lomov Date: Sun, 29 Dec 2013 07:33:59 +0900 Subject: [PATCH 1/2] HTML export: Use class for caption instead of align * ox-html.el: when exporting tables with caption use 'class' attributes instead of 'align', add two new entries into css section to put caption at top or at bottom of table. Signed-off-by: Vladimir Lomov --- lisp/ox-html.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 9fa0a8c..38988ed 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -280,6 +280,8 @@ for the JavaScript code in this tag. pre.src-sql:before { content: 'SQL'; } table { border-collapse:collapse; } + caption.t-above { caption-side: top; } + caption.t-bottom { caption-side: bottom; } td, th { vertical-align:top; } th.right { text-align: center; } th.left { text-align: center; } @@ -3268,8 +3270,8 @@ contextual information." (if (equal attributes "") "" (concat " " attributes)) (if (not caption) "" (format (if org-html-table-caption-above - "%s" - "%s") + "%s" + "%s") (concat "" (format (org-html--translate "Table %d:" info) number) -- 1.8.5.2