From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Org-Mode Homepage error Date: Tue, 16 Aug 2011 22:10:44 +0200 Message-ID: <8739h1i0cb.fsf@gnu.org> 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> <87r556uz2f.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtPxg-0004j2-1d for emacs-orgmode@gnu.org; Tue, 16 Aug 2011 16:10:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtPxd-0003ba-AV for emacs-orgmode@gnu.org; Tue, 16 Aug 2011 16:10:08 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:51594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtPxd-0003aJ-2E for emacs-orgmode@gnu.org; Tue, 16 Aug 2011 16:10:05 -0400 Received: by wyi11 with SMTP id 11so229203wyi.0 for ; Tue, 16 Aug 2011 13:10:04 -0700 (PDT) In-Reply-To: <87r556uz2f.fsf@Rainer.invalid> (Achim Gratz's message of "Sun, 31 Jul 2011 19:42:16 +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: Achim Gratz Cc: emacs-orgmode@gnu.org Hi Achim, CC'ing Sebastian in case he can have a look. Achim Gratz writes: > Could you be more specific what is a "no good result"? Well, the HTML page was empty -- same error than with the unpatched version of org-info.js. > 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: > > 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) If you're confident this works with this structure:

Title

...
then I will apply the patch (with a ChangeLog!) Thanks, -- Bastien