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?

      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
[email protected]   http://per.bothner.com/

Reply via email to