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: Sat, 13 Feb 2021 21:43:23 +0100

On Sat, Feb 13, 2021 at 10:34:06AM -0800, Per Bothner wrote:
> 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 will install it with some minor change, in particular, I prefer if 
_close_sections returns the closing elements list and not already text.

Thanks!

> 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">.)

Ok.

-- 
Pat



reply via email to

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