Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 04-24-2021, 07:49 PM   #1
lcharnes
Junior Member
lcharnes began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2021
Device: Kindle Fire
DOCX --> EPUB: blank pages between most chapters

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:
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>
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.
lcharnes is offline   Reply With Quote
Old 04-25-2021, 12:10 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,190
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If its happening for some chapters and not others there must be something different about either their endings or beginnings. For the extract you postedit looks likes a single paragraph with a . in it followed bya blank paragraph styled with a page break.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
docx to epub; one-character pages missing quinta@ebf.cz Conversion 3 07-31-2020 03:32 PM
Extra pages (blank screens) between chapters. Telyt Editor 3 07-06-2015 10:47 PM
Why are there blank pages between chapters? meschnei Conversion 1 08-29-2013 05:08 PM
Previewer shows multiple blank pages between html files/chapters SarahMB Calibre 1 01-21-2013 02:45 PM
Problem with blank pages between chapters AlexBell ePub 4 07-23-2010 07:01 AM


All times are GMT -4. The time now is 06:56 AM.


MobileRead.com is a privately owned, operated and funded community.