Created attachment 163802 [details]
firstWhen.odt: Initial page uses the normal left footer, not the first page footer.
When using the alternating Left/Right page styles, each page always uses the "first" headers and footers. That's fine. But if (strangely) you BEGIN the document with the left page style (i.e. start with page 2), that page shows the "Left" h/f instead of "FirstLeft".
This has always been the case AFAICS. However, it works for "Right Page".
Support for the first h/f seemed to arrive in LO 6.0 with
Author: Luke Deller on Wed Jul 12 23:56:50 2017 +1000
tdf#109080 First page header/footer ODF (1/2)
The proposal to add <style:header-first> / <style:footer-first>
to the ODF standard has not yet been accepted, so meanwhile we
should be using an extension namespace for these elements.
This first commit (intended for backport) adds support for reading
<loext:header-first> / <loext:footer-first>
This is a trivial problem. I only note it because it doesn't export to DOCX that way, so there is an inconsistency. The DOCX version ends up being the way I would expect it to be (always showing the first h/f, even on the first page). If any page was to show the "first" h/f, I would expect it to be the first page in the document.
VERY IMPORTANT: The UI for a left-page-only style doesn't allow you to change the settings to allow for a separate first page. (But that can be worked around by temporarily changing the style to be for right and left.) However, if separate ones are defined, it does honour that. So the difficulty in making this kind of problematic document makes this odd behaviour even less important.
Steps to reproduce
1.) just open firstWhen.odt.
Notice that the initial page has the footer is "left/even". Now look at the rest of the pages. They all start with the "first" footer for their page style.
So why is the first use of Left Page different from the other times?
// Create a page and put it in the layout
// The first page is always a right-page and always a first-page
proposed fix at https://gerrit.libreoffice.org/c/core/+/99862
Justin Luth committed a patch related to this issue.
It has been pushed to "master":
tdf#135338 sw layout: show FirstLeft on very first left page style.
It will be available in 7.1.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.