In the ebook I have just create Calibre e-book viewer seems to add the following tag to the end of the XHTML file of each chapter just before the closing body tag.
Code:
<blank-page-div style="break-before: column; display: block; white-space: pre; background-color: transparent; background-image: none; border-width: 0px; float: none; position: static;">
</blank-page-div>
This can be found by right clicking in the e-book viewer, selecting Inspector (bottom left), then expanding html elements of the document:
- body
- NOT svg
- div id="view"
- div style="max-height: 100vh;
- div style="max-height: 100vh;
- div style="max-height: 100vh;
- NOT div style="width: 20px;
- div
- NOT div style="height: 20px;
- iframe
- #document
- html
- NOT head
- body
- NOT (the content of the chapter)
Then before the closing body tag is the above blank-page-div
What it does, I do not know, however I suspect it is the cause of blank pages at the end of chapters.
If it is of interest or relevance I am using calibre 5.37 on Ubuntu 22.04