From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Org-Mode Homepage error Date: Sun, 31 Jul 2011 19:42:16 +0200 Message-ID: <87r556uz2f.fsf@Rainer.invalid> References: <2152B3DFC552DE47A0A36CCC93D735310439FF32@mx01.ecoplan.local> <874o2ai1up.fsf@googlemail.com> <4524.1311625834@alphaville.americas.hpqcorp.net> <87oc0ihwvk.fsf@gnu.org> <80bowhxlpz.fsf@somewhere.org> <87mxg1ozgc.fsf@gnu.org> <87vcupdobh.fsf@Rainer.invalid> <87pqkvpr1u.fsf@altern.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qna25-0001nL-LJ for emacs-orgmode@gnu.org; Sun, 31 Jul 2011 13:42:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qna23-0005FW-R4 for emacs-orgmode@gnu.org; Sun, 31 Jul 2011 13:42:33 -0400 Received: from lo.gmane.org ([80.91.229.12]:42037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qna23-0005FP-Hm for emacs-orgmode@gnu.org; Sun, 31 Jul 2011 13:42:31 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qna21-000838-7e for emacs-orgmode@gnu.org; Sun, 31 Jul 2011 19:42:29 +0200 Received: from p57aacf0f.dip.t-dialin.net ([87.170.207.15]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 31 Jul 2011 19:42:29 +0200 Received: from Stromeko by p57aacf0f.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 31 Jul 2011 19:42:29 +0200 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: emacs-orgmode@gnu.org Bastien writes: > Mhh... I tried to patch org-info-src.js with this fix, to recompile > it (and get org-info.js). I copied the result here: > > http://orgmode.org/org-info2.js That is the same file I have produced myself now. > Then setting this path in `org-infojs-options', I tried various ways > of getting a working HTML file, with the new div structure, but with > no good result. Could you be more specific what is a "no good result"? I've been generating the index.html in org-info-js and it now works without error for me. I've even found a simpler patch that is based on the class of the title heading so that it is found regardless of its position in preamble or content: --8<---------------cut here---------------start------------->8--- Diff --git a/code/org-info-js/org-info-src.js b/code/org-info-js/org-info-src.js index 2e49e9c..b521c50 100644 --- a/code/org-info-js/org-info-src.js +++ b/code/org-info-js/org-info-src.js @@ -738,7 +738,7 @@ var org_html_manager = { // Move the title into the first visible section. // TODO: show title above everything if FIXED_TOC !!! - t.TITLE = t.BODY.getElementsByTagName("h1")[0]; + t.TITLE = document.getElementsByClassName("title")[0]; if(t.INNER_TITLE && !t.FIXED_TOC && t.VIEW != t.SLIDE_VIEW) { t.INNER_TITLE = t.TITLE.cloneNode(true); /* TODO: this is still based on wrong behaviour of browsers (same id for two elements) --8<---------------cut here---------------end--------------->8--- It seems that there may be an implicit assumption that the title is in the same DIV as the content. This seems to work OK in FF5 and Konqueror 4.6.5 (WebKit), however it may break in other browsers. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf Blofeld V1.15B11: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada