From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [ox-html] bug in documentation of org-html-table-row-tags Date: Sun, 07 Apr 2013 23:23:38 +0200 Message-ID: <87bo9q2fvp.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOx4y-0004eb-23 for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 17:24:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOx4w-0003Uk-3s for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 17:24:47 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:33271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOx4v-0003US-UD for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 17:24:46 -0400 Received: by mail-we0-f176.google.com with SMTP id s43so4122172wey.35 for ; Sun, 07 Apr 2013 14:24:45 -0700 (PDT) In-Reply-To: (Stefan Vollmar's message of "Wed, 27 Mar 2013 10:35:00 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stefan Vollmar Cc: Org Mode Mailing List Hi Stefan, Stefan Vollmar writes: > according to the documentation of org-html-table-row-tags in > ox-html.el the following code can be used to assign different CSS > classes to alternating rows: Obviously, this option has been simply copied from org-html.el and the docstring was obsolete, because `head' is not dynamically bound anymore. > However, I would suggest to implement this differently: have an > option "org-html-alternating-table-row-classes" (or similar) that - > if not nil - is used for alternating class names. Or - in keeping > with hardwired class names like "org-ul" - always use "org-row-odd" > and "org-row-even" if "org-html-alternating-table-row-classes" is > not nil. Users who would prefer different class names could then > still come up with their own definition of org-html-table-row-tags > if needed. I pushed a fix which preserves the spirit of the previous option, but with more variables to check against. I know this is not the most user-friendly we can do here, but at least it is consistent with what the code allows. Thanks for reporting this! -- Bastien