08-25-2014, 11:25 AM | #1 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
ADE adds blank pages?
When I'm viewing my epub in ADE, if my chapter -- or, rather, the particular XML file I'm viewing at the time -- happens to end on the left page, then ADE always inserts a blank right-hand page afterwards so that the next chapter/file will begin again on the left page. This is really annoying, because I've got everything split up into so many separate files (for, say, the frontispiece, title page, CIP, table of contents, etc.) that I end up having all kinds of blank pages all over the place.
Is there any way to get it to not do this? I don't mean within ADE program itself (I don't see a setting for that anywhere), but rather some code I can put in my epub to tell ADE (and whatever other devices do this) to not insert blank pages between files, regardless of whether they end up on the left or right page? |
08-25-2014, 11:46 AM | #2 |
Grand Sorcerer
Posts: 5,605
Karma: 23165369
Join Date: Dec 2010
Device: Kindle PW2
|
Most likely the stylesheet is the culprit:
Open the ePub with Calibre Editor or Sigil, search the stylesheet for one of the following: Code:
page-break-before page-break-after page-break-inside |
Advert | |
|
08-25-2014, 11:51 AM | #3 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
I don't have "page-break" (of any kind) anywhere in my stylesheet at all!
|
08-25-2014, 12:01 PM | #4 | |
Grand Sorcerer
Posts: 5,605
Karma: 23165369
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
If not, post the frontispiece or title page html code and the definitions of all the styles used by these files. |
|
08-25-2014, 12:16 PM | #5 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
It's not just my frontispiece file or title page file that does this -- it's EVERY file, any time I'm viewing my ebook in ADE and it happens that the file I'm looking at ends on the left-hand page, then ADE inserts a blank page afterwards. It doesn't matter whether that file is, say, a full-page image, or a single-page title page, or a 20-page chapter, or any other "type" of individual file that I have. And I've pored over my CSS, too, and there's nothing weird that I'm doing (let alone anything that's specific to how page breaks, etc.). Doesn't ADE do this for your epubs, too? I was hoping, I suppose, that there might be some code that I could insert to tell ADE to not do this -- wishful thinking, anyway. :/ |
|
Advert | |
|
08-25-2014, 04:08 PM | #6 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
08-25-2014, 04:31 PM | #7 | |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
You're missing a critical detail. Page break behavior between files is implicitly defined by the specification. From the EPUB spec:
Quote:
|
|
08-25-2014, 04:38 PM | #8 | ||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Quote:
It definitely is happening for every single file (and I've got 30 or 40 of them in my book), wherever the "chapter" (file) happens to end on the left-hand page -- then ADE inserts a blank page on the right and starts the new chapter/file on the left again. This doesn't happen if/when the chapter/file ends on the right-hand page, nor does it happen in iBooks, everything works just fine in the latter -- it's only ADE (haven't tested this in anything else). |
||
08-25-2014, 04:45 PM | #9 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
page-break-before: always !important; ...to the style for "body" in my CSS file. It doesn't seem to fix the problem, I still get those page breaks. I just checked my other ebooks, too, that I've made in the past -- it's happening with them, too. Strange that I'm only noticing this now, actually! This doesn't happen to other people? |
|
08-25-2014, 06:04 PM | #10 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
If you narrow the screen by reducing the width of the window then it will revert to single page at a time and your problem will go away. The issue is the ADE and most ePub readers only actually work with one file at a time from your ePub document. Thus if your file runs out on the left side of the page then you will have a blank right side and then when you load the new file (new chapter) the document will start on the left side. Most people use only a single column on ADE so they don't see this problem. Dale |
|
08-25-2014, 06:53 PM | #11 |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Sure, doing a single-page spread works around the problem, but it's odd that adding the page-break-before property didn't fix it in two-page mode.
|
08-25-2014, 08:13 PM | #12 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
08-25-2014, 08:21 PM | #13 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
And y'know what was causing it (as I discovered after much exasperation)? It was that "solution" that was given here before, to insert this into my body style... page-break-before: always !important; THAT causes an extra page to be added after every file in iBooks! So so much for that bit of code. |
|
08-26-2014, 12:57 AM | #14 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
08-26-2014, 01:02 AM | #15 |
Zealot
Posts: 117
Karma: 584308
Join Date: Oct 2010
Location: San Francisco
Device: Kindle
|
You could set "oeb-column-number" to 1.
E.g. <body style="oeb-column-number: 1"> or in the CSS for global settings. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blank pages | Sablerose | Marvin | 11 | 02-08-2014 09:06 AM |
PDF to EPUB adds extra blank lines ?? | Rojofo | Conversion | 3 | 06-01-2012 06:20 PM |
Blank Pages | PAULINE BIRCHNAL | Conversion | 5 | 01-02-2012 12:47 PM |
Troubleshooting one after another blank pages | monsterbadgog | Amazon Kindle | 0 | 02-20-2011 04:02 PM |
Blank pages | JSWolf | Calibre | 4 | 11-29-2008 01:22 PM |