From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Is it possible to add a class to a paragraph in HTML export? Date: Wed, 16 Apr 2014 21:13:31 -0400 Message-ID: <20140417011331.GA34799@eyeBook> References: <20140401212850.157255d1@aga-netbook> <8761msdeot.fsf@bzg.ath.cx> <87fvlwnrav.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Waatc-0001A2-Mf for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 21:13:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WaatV-0006qo-6w for emacs-orgmode@gnu.org; Wed, 16 Apr 2014 21:13:44 -0400 Content-Disposition: inline In-Reply-To: <87fvlwnrav.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 , Org-mode mailing list , Marcin Borkowski On Wed, Apr 02, 2014 at 09:06:48AM +0200, Nicolas Goaziou wrote: > > If deemed useful, I think this patch should use > `org-html--make-attribute-string' instead of hard-coding "class" > attribute: > > (attributes (org-html--make-attribute-string > (org-export-read-attribute :attr_html paragraph))) > > ... > > (t (format "\n%s

" attributes extra contents)) > > This way, attributes will not be limited to "class" only. See, for > example, `org-html-special-block'. A version of this patch using Nicolas' approach has been pushed to master. rick