From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aankhen Subject: Re: Re: [REGRESSION] org-html.el (targets) Date: Tue, 8 Mar 2011 12:44:50 +0530 Message-ID: References: <81r5b2frh9.fsf@gmail.com> <877hcarjom.fsf@univ-nantes.fr> <87wrkak6q9.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=46121 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwrCC-00011D-2k for emacs-orgmode@gnu.org; Tue, 08 Mar 2011 02:19:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwrC8-0001X9-3X for emacs-orgmode@gnu.org; Tue, 08 Mar 2011 02:19:01 -0500 Received: from mail-vw0-f41.google.com ([209.85.212.41]:63674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwrC8-0001X2-19 for emacs-orgmode@gnu.org; Tue, 08 Mar 2011 02:19:00 -0500 Received: by vws13 with SMTP id 13so5588373vws.0 for ; Mon, 07 Mar 2011 23:18:59 -0800 (PST) In-Reply-To: <87wrkak6q9.fsf@norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen , Manuel Giraud , Org-mode ml On Tue, Mar 8, 2011 at 02:07, Bernt Hansen wrote: > Thanks for the patch. =C2=A0I still see validation errors after applying = this > patch. =C2=A0I've posted the original test file at > http://www.norang.ca/tmp/foo.html and you can click on the validation > link at the bottom to see the remaining errors. This one seemed easy to fix, so I thought I=E2=80=99d butt in. :-) Hope the format of the patch is right (I=E2=80=99m using hg-git). --8<---------------cut here---------------start------------->8--- # HG changeset patch # User Aankhen # Date 1299568135 -19800 # Node ID 23e761c8a103c521aef0a85ee3650bc850d0193d # Parent 56fa585a0f995bc97006ce6d6c2baab9c484444c Fix anchors in HTML export. diff --git a/lisp/org-html.el b/lisp/org-html.el --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1996,8 +1996,8 @@ ;; DocBook document, we want to always include the caption to make ;; DocBook XML file valid. (push (format "%s" (or caption "")) html) - (when label (push (format "" (org-solidify-link-text label) (org-solidify-link-text label)) - html)) + (when label + (setq html-table-tag (org-export-splice-attributes html-table-tag (format "id=3D\"%s\"" (org-solidify-link-text label))))) (push html-table-tag html)) (setq html (mapcar (lambda (x) --8<---------------cut here---------------end--------------->8--- Aankhen