bug-texinfo
[Top][All Lists]
Advanced

[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: Sat, 13 Feb 2021 10:34:06 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

On 2/13/21 8:59 AM, Patrice Dumas wrote:
Regarding your patch, my feeling is that the best is to have a function
to register opened sectioning commands, and another to ask for the
closing elements down to a given level.  Does it looks ok?

How about the attached new patch?

I also added a call to $command->{'extra'}->{'associated_node'}.
This is to catch the case of a header command (such as @subheading)
with no associated node.

(The need for that is because my change "switches" the
node and section commands: The tree has the node element before the
sectioning command.  However, my change is to have the emitted
sectioning element wrap the node elements *and* sub-sections,
so the "node" element is processed to emit a <div class="section">
while the "section" element generates a <div class="node">.)
--
        --Per Bothner
per@bothner.com   http://per.bothner.com/

Attachment: restruct2.patch
Description: Text Data


reply via email to

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