bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: html structure revisited


From: Patrice Dumas
Subject: Re: html structure revisited
Date: Thu, 11 Feb 2021 22:43:34 +0100

On Thu, Feb 11, 2021 at 10:09:33AM -0800, Per Bothner wrote:
> On 2/11/21 8:00 AM, Patrice Dumas wrote:
> > This does not prevent reconstituting the nested sectioning structure.
> > This is done in Convert/DocBook.pm.  The elements are opened rather
> > normally (around l 690), but they are closed only when they do not have
> > next element and close parents in the tree.  Starting l 1142 there is
> > the code that closes the nested sectioning tree elements.
> 
> These line numbers seem off.  Did you mean line 1462 instead of 1142?

Actually I wanted to write 1442, sorry...

> 
>       my $current = $root;
>       while ($current->{'section_up'}
>              # the most up element is a virtual sectioning root element, this
>              # condition avoids getting into it
>              and $current->{'section_up'}->{'cmdname'}
>              and !$current->{'section_next'}
>              and $self->_level_corrected_section($current->{'section_up'}) ne 
> 'top') {
>         $current = $current->{'section_up'};
>         $result .= '</'.$self->_docbook_section_element($current) .">\n";
>       }
> 
> -- 
>       --Per Bothner
> per@bothner.com   http://per.bothner.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]