LibreOffice’s export to .epub
doesn’t work at all well. So, instead, I export to .docx
and then use Calibre to convert that to .epub
.
The conversion works well, apart from one oddity: When I export my .odt
to .docx
, LibreOffice adds a page-break to one of my styles. This results in a large number of pages that are quite empty, as there shouldn’t be a page-break to that style.
This obviously carries over into the .epub
, which is a problem.
It’s only the one style where this happens, which makes me think that I’ve done something wrong, but I simply cannot figure out what it might be! I would appreciate help with this, please.
I’ve attached a sample document extracted from my original (with data redacted): The original .odt
and the saved .docx
.
Sample.odt (47.8 KB)
Sample.docx (10.4 KB)
The style where this problem happens is called Section 3. There is no page-break defined in the style, nor have I manually added a page-break. It is correctly rendered in .odt
and when I export as PDF. But, when I save as .docx
, it adds a page-break before every Section 3 style.
What can I do to fix this, please?
System details
Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Flatpak
Calc: threaded
Running on Linux Ubuntu 22.04