From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Attributes on HTML tables? Date: Sun, 07 Apr 2013 20:46:29 +0200 Message-ID: <878v4uxjp6.fsf@gmail.com> References: <86bo9rnj6q.fsf@iro.umontreal.ca> <87ppy66eke.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOubx-0007fi-7c for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 14:46:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOubr-0000n5-2W for emacs-orgmode@gnu.org; Sun, 07 Apr 2013 14:46:41 -0400 In-Reply-To: (Christian Moe's message of "Sun, 07 Apr 2013 16:42:04 +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 , =?utf-8?Q?Fran=C3=A7ois?= Pinard , emacs-orgmode@gnu.org Hello, Christian Moe writes: > Bastien writes: >> You need to use :options now: >> >> #+CAPTION: This is a table with lines around and between cells >> #+ATTR_HTML: :options border="2" rules="all" frame="border" > > Oddly, this doesn't work for me at the moment. I'm running > release_8.0-pre-344-g882454, pulled this morning. (It /could/ be just > me; I seem to have some unresolved installation issues.) > > When I export, both the defaults /and/ the "options" are applied, > resulting in duplicated attributes, like this: > > frame="hsides" border="2" rules="all" frame="border"> This is a bug. > The documentation currently up on Worg > (http://orgmode.org/worg/org-8.0.html#sec-8-3), which seems to say we > should now use plists for HTML attributes. But that currently doesn't > work for me either. > > Sorry if you've heard this before, but this doesn't make sense to me as > a new syntax: > > #+ATTR_HTML: :options attribute="value" > > It's not just more verbose than the old way, it's redundant to say both > "attr" and "options", since all it does is set attributes. Actually, that's not the spirit. The idea is to define some widely used attributes that will be written directly like: #+attr_html: :border 0 :width 400 Then, :options attribute is used as a bucket for every other attribute, since we cannot support all of them. Unfortunately, no attribute is current recognized in table HTML transcoder. It needs to be improved. If Someone provides a list of such attributes, I can implement it. Regards, -- Nicolas Goaziou