From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: custom IDs not exported Date: Thu, 16 Jun 2011 17:40:56 -0400 Message-ID: <15432.1308260456@alphaville.dokosmarshall.org> References: <87hb7wq9bc.wl%n142857@gmail.com> <10721.1307848346@alphaville.dokosmarshall.org> <87hb7p79ao.wl%n142857@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXKJT-0006lU-D5 for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 17:41:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXKJR-0003M6-Pn for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 17:41:19 -0400 Received: from vms173003pub.verizon.net ([206.46.173.3]:55538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXKJR-0003Ls-D1 for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 17:41:17 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LMW00L63K889U20@vms173003.mailsrvcs.net> for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 16:41:09 -0500 (CDT) In-reply-to: Message from Daniel Clemente of "Thu, 16 Jun 2011 23:31:27 +0200." <87hb7p79ao.wl%n142857@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: Daniel Clemente Cc: nicholas.dokos@hp.com, org-mode Mailinglist Daniel Clemente wrote: > Hi, > > Could you check this patch in? > It is checked in already. The commit looks like this: ,---- | commit 1891ee5aafee710315a26595385e670e1ac3771e | Author: Carsten Dominik | Date: Tue Jun 14 10:46:09 2011 +0200 | | Fix HTML export to make CUSTOM_ID links work again | | * lisp/org-html.el (org-export-as-html): | (org-html-level-start): Only convert section number underscores to dashes. `---- ``git show 1891ee5aafee710315a26595385e670e1ac3771e'' will show you whether you have it or need to pull. Nick > > > El Sat, 11 Jun 2011 23:12:26 -0400 Nick Dokos va escriure: > > > > I have a minimal patch that I think fixes this problem, but there are > > other underscores used in various places in org-html.el so there might > > be additional problems. I'd appreciate it if you (and/or others) test it > > and report not only on this problem but on any other problems you find. > > > > Thanks, > > Nick > > > > diff --git a/lisp/org-html.el b/lisp/org-html.el > > index afc6a77..b5d371f 100644 > > --- a/lisp/org-html.el > > +++ b/lisp/org-html.el > > @@ -1395,7 +1395,7 @@ lang=\"%s\" xml:lang=\"%s\"> > > (setq txt (replace-match "" t t txt))) > > (setq href > > (replace-regexp-in-string > > - "\\." "_" (format "sec-%s" snumber))) > > + "\\." "-" (format "sec-%s" snumber))) > > (setq href (org-solidify-link-text (or (cdr (assoc href org-export-preferred-target-alist)) href))) > > (push > > (format > > @@ -2412,7 +2412,7 @@ When TITLE is nil, just close all open levels." > > (insert "
    \n
  • " title "
    \n")))) > > (aset org-levels-open (1- level) t) > > (setq snumber (org-section-number level) > > - snu (replace-regexp-in-string "\\." "_" snumber)) > > + snu (replace-regexp-in-string "\\." "-" snumber)) > > (setq level (+ level org-export-html-toplevel-hlevel -1)) > > (if (and num (not body-only)) > > (setq title (concat > > >