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/

Received on Friday, 10 September 1999 19:09:17 UTC