I'm converting a DOCX to an EPUB and, like the title says, most but not all of the chapters end up with a blank page between them. I end chapters in the DOCX with a section break/next page, which I've done for some while without this being a problem.
My "Detect chapters at" setting is "//*[(name()='h1' or name()='h2')]". "Insert page breaks before" is set to "/". I've confirmed there are no stray H1 or H2 style assignments between the affected chapters.
The blank pages are identical, as follows:
Here's the wrinkle: this happens between ~90% of the chapters. Maybe half a dozen don't have this. There's absolutely nothing different about the chapter ends or beginnings in the DOCX.
I can delete the blank pages and end up with correct EPUBS, but that's a PITA. Why is this happening, and how do I stop it? I've never had this problem before after having used Calibre for years. I'm using Calibre 5.16.1 for Windows.
My "Detect chapters at" setting is "//*[(name()='h1' or name()='h2')]". "Insert page breaks before" is set to "/". I've confirmed there are no stray H1 or H2 style assignments between the affected chapters.
The blank pages are identical, as follows:
Quote:
|
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Chasing Clay</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="stylesheet.css"/> <link rel="stylesheet" type="text/css" href="page_styles.css"/> </head> <body class="calibre"> <p class="block_12" id="calibre_pb_3">.</p> <div class="calibre1" id="calibre_pb_4"></div> </body></html> |
I can delete the blank pages and end up with correct EPUBS, but that's a PITA. Why is this happening, and how do I stop it? I've never had this problem before after having used Calibre for years. I'm using Calibre 5.16.1 for Windows.