From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-mode CSS property export bug Date: Sat, 24 Apr 2010 14:23:05 +0200 Message-ID: <18D72CC0-9E81-4861-9CB4-5A85BD8301AC@gmail.com> References: <87y6gf5g6x.fsf@gmx.de> <877hnycuqf.fsf@gmx.de> <8739ylmdkp.fsf@gmx.de> <87wrvxum6d.fsf@gmx.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5eO8-0002On-U8 for emacs-orgmode@gnu.org; Sat, 24 Apr 2010 08:23:12 -0400 Received: from [140.186.70.92] (port=47534 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5eO6-0002Oa-BS for emacs-orgmode@gnu.org; Sat, 24 Apr 2010 08:23:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5eO4-0000bp-Jr for emacs-orgmode@gnu.org; Sat, 24 Apr 2010 08:23:10 -0400 Received: from ey-out-1920.google.com ([74.125.78.148]:21287) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5eO4-0000bf-FJ for emacs-orgmode@gnu.org; Sat, 24 Apr 2010 08:23:08 -0400 Received: by ey-out-1920.google.com with SMTP id 4so870701eyg.34 for ; Sat, 24 Apr 2010 05:23:07 -0700 (PDT) In-Reply-To: <87wrvxum6d.fsf@gmx.de> 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: Sebastian Rose Cc: emacs-orgmode@gnu.org Hi Sebastian, I need to ask: What exactly are we changing? just the class names? of the id and names as well? Will links have to be changed? - Carsten On Apr 24, 2010, at 1:25 PM, Sebastian Rose wrote: > Hi everyone, > > > here's a patch for org-html.el to fix those IDs. > > sec-1.2 => sec-1_2 > sec-1.2.3 => sec-1_2_3 > > > > > diff --git a/lisp/org-html.el b/lisp/org-html.el > index 71f62eb..133bffa 100644 > --- a/lisp/org-html.el > +++ b/lisp/org-html.el > @@ -871,7 +871,9 @@ lang=\"%s\" xml:lang=\"%s\"> > t t line))) > (while (string-match "<\\(<\\)+\\|>\\(>\\)+" txt) > (setq txt (replace-match "" t t txt))) > - (setq href (format "sec-%s" snumber)) > + (setq href > + (replace-regexp-in-string > + "\\." "_" (format "sec-%s" snumber))) > (setq href (or (cdr (assoc href org-export-preferred-target- > alist)) href)) > (push > (format > @@ -2085,8 +2087,11 @@ When TITLE is nil, just close all open levels." > " " title))) > (unless (= head-count 1) (insert "\n\n")) > (setq href (cdr (assoc (concat "sec-" snumber) org-export-preferred- > target-alist))) > - (setq suffix (or href snumber)) > - (setq href (or href (concat "sec-" snumber))) > + (setq suffix (or href > + (replace-regexp-in-string "\\." "_" snumber))) > + (setq href (or href > + (replace-regexp-in-string > + "\\." "_" (concat "sec-" snumber)))) > (insert (format "\n
%d%s\">\n%s%s\n
id=\"text-%s\">\n" > suffix level (if extra-class (concat " " extra-class) "") > level href > > > > > Who ever uses org-info.js will have to pull the new (but backward > compatible) version from > > http://orgmode.org/worg/code/org-info-js/org-info.js > > provided this or something similar gets applied. Please give the > server > a while to run the publishing before downloading (I guess 2 hours are > enough). It's now ... > > > $ date -u > Sa 24. Apr 11:13:26 UTC 2010 > > > > > Best wishes > > Sebastian - Carsten