From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: Re: custom IDs not exported Date: Mon, 13 Jun 2011 12:04:33 +0200 Message-ID: <87zklm6o9a.wl%n142857@gmail.com> References: <87hb7wq9bc.wl%n142857@gmail.com> <10721.1307848346@alphaville.dokosmarshall.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QW40e-0006e2-JZ for emacs-orgmode@gnu.org; Mon, 13 Jun 2011 06:04:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QW40d-0005jV-B2 for emacs-orgmode@gnu.org; Mon, 13 Jun 2011 06:04:40 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:40472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QW40d-0005jN-3C for emacs-orgmode@gnu.org; Mon, 13 Jun 2011 06:04:39 -0400 Received: by wwb39 with SMTP id 39so3834839wwb.30 for ; Mon, 13 Jun 2011 03:04:37 -0700 (PDT) In-Reply-To: <10721.1307848346@alphaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: org-mode Mailinglist With your patch I could export correctly to HTML a big collection of data, with the same results as before (except for the changed _ to -, of course). Links work. Thanks, Daniel El Sat, 11 Jun 2011 23:12:26 -0400 Nick Dokos va escriure: > > I was afraid that other exporters might break because of this. Apologies > for the inconvenience. And, btw, thanks for the test case. > > 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 >