From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Attributes on HTML tables? Date: Thu, 11 Apr 2013 14:14:33 +0200 Message-ID: References: <86bo9rnj6q.fsf@iro.umontreal.ca> <87ppy66eke.fsf@bzg.ath.cx> <878v4uxjp6.fsf@gmail.com> <87mwtavzgv.fsf@gmail.com> <87haje41ns.fsf@gmail.com> <87hajds5f5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQGMb-0006VU-9l for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 08:12:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQGMW-0003uP-Hy for emacs-orgmode@gnu.org; Thu, 11 Apr 2013 08:12:25 -0400 In-reply-to: <87hajds5f5.fsf@gmail.com> 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: Nicolas Goaziou Cc: Bastien , emacs-orgmode@gnu.org Nicolas Goaziou writes: > I prefer not to mix the two methods as it would be fragile (e.g. what > happens if an attribute is defined both outside and inside the :options > keyword?). Perhaps not much. As I reported (the reason :options wasn't working), in Firefox the second definition of the attribute is simply quietly ignored. But if you prefer to keep it clean, I'm fine with that. >> to batch convert files from verbatim html attributes to plist syntax with >> something like the following -- USE AT OWN RISK, NO WARRANTY IMPLIED: >> >> : perl -i.bak -pe 's/([a-z]+)=([\"\'])(.*?)\2/:\1 \2/g if >> /^#\+attr_html/i' *.org Oops, in that message I accidentally copy-pasted a WRONG version. Hopefully didn't work at all, or it would mess things up. Sorry. This seems to work well: : perl -i.bak -pe "s/([a-z]+)=(\"|')(.*?)\2/:\1 \3/g if /^#\+attr_html/i" filename.org > Would you mind adding it to Worg section about the migration to > Org 8.0? It would be quite useful. Will do. Yours, Christian