From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Attributes on HTML tables? Date: Wed, 10 Apr 2013 21:37:59 +0200 Message-ID: <87haje41ns.fsf@gmail.com> References: <86bo9rnj6q.fsf@iro.umontreal.ca> <87ppy66eke.fsf@bzg.ath.cx> <878v4uxjp6.fsf@gmail.com> <87mwtavzgv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQ0qM-0007w5-5e for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 15:38:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQ0qK-0000De-FL for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 15:38:06 -0400 In-Reply-To: (Christian Moe's message of "Mon, 08 Apr 2013 23:09:09 +0200") 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: Christian Moe Cc: Bastien , emacs-orgmode@gnu.org Hello, Christian Moe writes: > If I understand the question correctly, I think the union is the correct > answer, with provided attributes overwriting defaults for the same > attributes. > > In the example we started with, the defaults would create > > frame="hsides"> > > If the user specifies > > #+attr_html: :border 2 :rules all :frame border :title My table > > I would expect the result > >
frame="border" title="My table"> Thank you for all the information. I have pushed a patch along these lines. Caveat: `org-html-table-tag' is now named `org-html-table-default-attributes' and expect a plist as its value. Also, a nil value will remove the property from the attributes. Could you test it and confirm this is now behaving in a desirable way? Regards, -- Nicolas Goaziou