Huh? This has absolutely nothing to do with my question. The default is for a quarter-length line between text and footnotes, yes, but I’m not talking about footnotes.
The separator line appeared when I experimented the suggestion. I re-checked to see if I made a mistake and I confirm a separator line replaces the page break between text and endnotes. Consequently, there is a need to wipe out the separator.
A MORE COMPLETE SOLUTION:
Thanks for this conversation.
I found a way to put text at the start of the Endnotes section (I put simply the single word “Endnotes”), and have that appear only on the first page, and not on subsequent pages.
This has worked for three pages of endnotes so far, so I’m confident it will work for an unlimited number of endnotes.
I formatted the Page Style for Endnote. Went to Header, turned Header on, unchecked Same content on left and right pages (which probably didn’t matter), unchecked Same content on first page.
I put the content that I wanted into the header of the first page of Endnotes.
Then I went back, edited the Endnote page style again, and made sure Auto-Fit height was checked, but Height itself was at the minimum (it wouldn’t go below 0.04").
Incidentally, I set the style for the “Endnote” title the same as my chapter headings (Heading 1), and adjusted the height above and below. So now it stylistically matches my chapter headings.
I left the headers for the subsequent pages blank. So now those pages go almost all the way to the top of the page.
To get the spacing for “Endnotes” to stick through TOC updates, I had to adjust spacing in the paragraph.
Done!
Good trick but I wonder if a Heading 1 in the header has adverse consequences. Have you a table of contents in your document? In this case does the “Endnotes” title appear in it?
I’m not sure if the update in the answer addresses my question. Headers are pieces of text repeated on every page. Consequently, their page number is not defined.
I just made an experiment. Apparently, the header is captured when it is first needed and the Heading 1 paragraph gets the first page number of the page style. However, when there are other Heading 1 in the page, the order in which they are listed in the TOC seems to depend on the order of addition.
Your case is safe because you unchecked Same content on first page and you have no othe Heading 1 in this page.
As of at least LibreOffice Community version 7.1.7.2, an endnote page header can be added by selecting Insert > Header and Footer > Header > Endnote. Text can then be added and formatted within the endnote header as desired.