From 25e1e4d0eb2aadf7216ae0c4fca71a9fb0ee23f8 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 9 Apr 2013 19:40:06 +0200 Subject: [PATCH] ox-html.el (org-html-table-row-tags): Better example * ox-html.el (org-html-table-row-tags): Better example. Thanks to Stefan Vollmar for providing this new example. --- lisp/ox-html.el | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 3a67e391a..a083bc9cb 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -795,13 +795,17 @@ you can reuse them: For example: - (setq org-html-table-row-tags - (cons '(cond (top-row-p \"\") - (bottom-row-p \"\") - (t \"\")) - \"\")) +\(setq org-html-table-row-tags + (cons '(cond (top-row-p \"\") + (bottom-row-p \"\") + (t (if (= (mod row-number 2) 1) + \"\" + \"\"))) + \"\")) -will use the \"tr-top\" and \"tr-bottom\" classes for top and bottom row." +will use the \"tr-top\" and \"tr-bottom\" classes for the top row +and the bottom row, and otherwise alternate between \"tr-odd\" and +\"tr-even\" for odd and even rows." :group 'org-export-html :type '(cons (choice :tag "Opening tag"