Re: [PATCH] XHTML Outline Fix

From: Gerald Oskoboiny (gerald@w3.org)
Date: Fri, Sep 10 1999


Date: Fri, 10 Sep 1999 19:09:13 -0400
From: Gerald Oskoboiny <gerald@w3.org>
To: Terje Bless <link@tss.no>
Cc: W3C Validator <www-validator@w3.org>
Message-ID: <19990910190913.F2223@w3.org>
Subject: Re: [PATCH] XHTML Outline Fix

On Fri, Sep 10, 1999 at 06:53:24PM -0400, Gerald Oskoboiny wrote:
> On Fri, Sep 10, 1999 at 04:44:13PM +0200, Terje Bless wrote:
> > Patch for the broken Outline for XHTML documents.
> 
> Applied, thanks.

Whoops, that wasn't quite enough; I also had to change this line:

***************
*** 847,853 ****
  
        $line = "foo";
        my $heading = "";
!       while ( substr( $line, 0, 3 ) ne ")H$level" ) {
            $line = $esis[$_++];
            if ( $line =~ /^-/ ) {
                my $headcont = $line;
--- 847,853 ----
  
        $line = "foo";
        my $heading = "";
!       while ( substr( $line, 0, 3 ) !~ /^\)H$level/i ) {
            $line = $esis[$_++];
            if ( $line =~ /^-/ ) {
                my $headcont = $line;

Otherwise it would get stuck in an infinite loop when trying to
generate the outline for XHTML docs.

-- 
Gerald Oskoboiny       <gerald@w3.org>  +1 617 253 2920
System Administrator   http://www.w3.org/People/Gerald/
World Wide Web Consortium (W3C)      http://www.w3.org/