From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: New HTML exporter incorrect attributes Date: Sat, 23 Feb 2013 00:18:56 +0100 Message-ID: <87vc9khr8f.fsf@gmail.com> References: <878v6g9eef.fsf@lapcat.tftorrey.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U91tb-0003fj-0Y for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 18:19:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U91tW-0005GV-Sw for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 18:19:14 -0500 Received: from mail-wi0-f173.google.com ([209.85.212.173]:53928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U91tW-0005FG-NU for emacs-orgmode@gnu.org; Fri, 22 Feb 2013 18:19:10 -0500 Received: by mail-wi0-f173.google.com with SMTP id hq4so1537691wib.12 for ; Fri, 22 Feb 2013 15:19:09 -0800 (PST) In-Reply-To: <878v6g9eef.fsf@lapcat.tftorrey.com> (T. F. Torrey's message of "Fri, 22 Feb 2013 15:23:20 -0700") 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: "T.F. Torrey" Cc: emacs-orgmode@gnu.org Hello, tftorrey@tftorrey.com (T.F. Torrey) writes: > Where attributes have been assigned to an image in a paragraph, the new > exporter applies those attributes to both the image and a following > link. You don't assign attributes to an image in a paragraph, you assign attributes to the paragraph itself. For the time being, Org syntax doesn't allow to specify attributes per link object. As a consequence, attributes will be assigned to every link within the paragraph. A hack could be implemented in ox-html.el so only image links get these attributes, but it would be the same with multiple images within the same paragraph. A proper solution to the problem would be to slightly change link syntax. Until then, you'll have to use workarounds (like, for example, writing the other link in raw HTML syntax within an export snippet). Regards, -- Nicolas Goaziou