On 2/19/21 5:30 PM, Patrice Dumas wrote:
On Fri, Feb 19, 2021 at 05:00:45PM -0800, Per Bothner wrote:
It works, but if you want to conditionalize whether the footer is printed
depending on WORDS_IN_PAGE you have to do something more complicated.
It is not only WORDS_IN_PAGE. I think that you are doing it in a very
specific way that will make customization of the function very
difficult. I think that using another direction or passing another
element for the footer would be better.
I'm inclined to agree.
The main point of my message was primarily to suggest a goal for the resulting
output, assuming a default configuration.
Secondarily, that it might make sense to split parts of
'format_element_header' (called at end of each node/section)
into a new separate 'format_page_footer' (called at end of page).
However, calling 'format_page_footer' while processing the first node/section
in a page is almost certainly not the right thing to do.
--
--Per Bothner
[email protected] http://per.bothner.com/