From: Aankhen <aankhen@gmail.com>
To: Bernt Hansen <bernt@norang.ca>,
Manuel Giraud <manuel.giraud@univ-nantes.fr>,
Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Re: [REGRESSION] org-html.el (targets)
Date: Tue, 8 Mar 2011 12:44:50 +0530 [thread overview]
Message-ID: <AANLkTi=8xuUHbQ3iMvguGSqK0uPAbCu2erLQHV0bo9OO@mail.gmail.com> (raw)
In-Reply-To: <87wrkak6q9.fsf@norang.ca>
On Tue, Mar 8, 2011 at 02:07, Bernt Hansen <bernt@norang.ca> wrote:
> Thanks for the patch. I still see validation errors after applying this
> patch. I'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’d butt in. :-) Hope the
format of the patch is right (I’m 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 "<caption>%s</caption>" (or caption "")) html)
- (when label (push (format "<a name=\"%s\" id=\"%s\"></a>"
(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=\"%s\"" (org-solidify-link-text label)))))
(push html-table-tag html))
(setq html (mapcar
(lambda (x)
--8<---------------cut here---------------end--------------->8---
Aankhen
next prev parent reply other threads:[~2011-03-08 7:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-20 19:14 [REGRESSION] org-html.el (targets) Jambunathan K
2011-03-07 16:15 ` Manuel Giraud
2011-03-07 20:37 ` Bernt Hansen
2011-03-08 7:14 ` Aankhen [this message]
2011-03-08 10:15 ` Manuel Giraud
2011-03-08 15:02 ` Bernt Hansen
2011-03-09 10:39 ` Bastien
2011-03-09 10:40 ` Bastien
2011-03-09 15:06 ` Manuel Giraud
2011-03-09 15:38 ` [Accepted] [O] " Bastien Guerry
2011-03-09 15:40 ` Bastien
2011-03-09 10:36 ` Bastien
2011-03-09 19:27 ` Aankhen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=8xuUHbQ3iMvguGSqK0uPAbCu2erLQHV0bo9OO@mail.gmail.com' \
--to=aankhen@gmail.com \
--cc=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=manuel.giraud@univ-nantes.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).