08-19-2024, 12:51 AM | #1 |
eReader Wrangler
Posts: 7,743
Karma: 50255637
Join Date: Mar 2013
Location: Boise, ID
Device: PB HD3, GL3, Tolino Vision 4, Voyage, Clara HD
|
Blank pages between chapters?
It seems like the Calibre Viewer is adding blank pages between chapters now. For me it's pretty much every book. Has anyone else noticed this? (I used Linux, currently using Calibre 7.14.)
|
08-19-2024, 01:23 AM | #2 |
Bibliophagist
Posts: 40,345
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I have noticed that with some books. For most of them, when I look at the content, I find that for some reason that I can't wrap my mind around, the last lines of the text are blank lines. This can also happen when a margin-bottom is used to give space between paragraphs which is why I prefer a padding-top. Sample from one recent book:
Code:
<p style="margin:0.00% 0.00%; text-align:center; widows:0; orphans:0"> <span style=" font-size:1.25rem"> </span> </p> <p style="margin:0.00% 0.00%; text-align:center; widows:0; orphans:0"> <span style=" font-size:1.25rem"> </span> </p> <p style="margin:0.00% 0.00%; text-align:center; widows:0; orphans:0"> <span style=" font-size:1.25rem"> </span> </p> <p style="margin:0.00% 0.00%; text-align:center; widows:0; orphans:0"> <span style=" font-size:1.25rem"> </span> </p> <p style="margin:0.00% 0.00%"> </p> </div> Last edited by DNSB; 08-19-2024 at 01:26 AM. |
08-19-2024, 12:10 PM | #3 |
Evangelist
Posts: 455
Karma: 7897546
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe
|
When you have crappy HTML/CSS, you can get weird behavior.
I'm pretty sure that a compliant HTML renderer could turn all that into nothing at all, since each p contains nothing but spaces, which can be collapsed into a content box of 0px wide and 0px high. Since there is no additional margin or padding, the entire box would be 0px high and whatever the page width is for width. So, among all the ways to try to add vertical space, what you found is probably the worst, as it might not even work. |
08-19-2024, 06:00 PM | #4 |
Bibliophagist
Posts: 40,345
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
It may be ugly and I have trouble understanding why it is at end of a file or why the span is only wrapped around the middle space in the triad but I will admit that I did not find an application or device where it did not give a blank line (four web browsers, 5 epub rendering applications on Windows, iOS and Android and 3 brands of ereaders).
What I did succeed in is finding that when the last text in the chapter fell close enough to the bottom of the screen, one or more blank lines pushed onto the next screen causing a blank page to be displayed. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DOCX --> EPUB: blank pages between most chapters | lcharnes | Conversion | 1 | 04-25-2021 12:10 AM |
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 |