[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: html structure revisited
From: |
Per Bothner |
Subject: |
Re: html structure revisited |
Date: |
Thu, 11 Feb 2021 10:09:33 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
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
per@bothner.com http://per.bothner.com/
- Re: html structure revisited, Per Bothner, 2021/02/11
- Re: html structure revisited, Patrice Dumas, 2021/02/11
- Re: html structure revisited,
Per Bothner <=
- Re: html structure revisited, Patrice Dumas, 2021/02/11
- Re: html structure revisited, Per Bothner, 2021/02/12
- Re: html structure revisited, Patrice Dumas, 2021/02/13
- Re: html structure revisited, Per Bothner, 2021/02/13
- Re: html structure revisited, Patrice Dumas, 2021/02/13
- Re: html structure revisited, Patrice Dumas, 2021/02/13
- Re: html structure revisited, Per Bothner, 2021/02/13
- Re: html structure revisited, Patrice Dumas, 2021/02/13
- formatting_fr_icons test, Gavin Smith, 2021/02/14
- Re: formatting_fr_icons test, Gavin Smith, 2021/02/14