|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 268
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
What can invisibly cause a pagebreak?
I have an epub file and can't figure out what's causing a pagebreak.
Code:
<p class="noindent2">In the dungeons, the Queen sat in near perfect darkness. She had one window, high in the wall of her cell, and it allowed in some light during the day. She had a bed, and wall hangings and clean linen, and excellent food.</p> <p class="indent">And very careful guards. She didn’t know any of them, despite their red surcoats. But they were cautious and courteous.</p> Code:
.noindent2 {
display: block;
font-size: 1em;
line-height: 1;
text-align: justify;
text-indent: 0;
margin: 1em 0 0 0;
}
.indent {
display: block;
font-size: 1em;
line-height: 1;
text-align: justify;
text-indent: 1em;
margin: 0;
}
Aside from the ones I added, there's no page-break rule anywhere in the stylesheet. In the Calibre Editor and in Sigil, there is no other code around that paragraph. In the Calibre Viewer/Sigil preview, there's no pagebreak visible. But in Adobe Digital Editions, and on my Kobo, there's a pagebreak there. I have widows and orphans removed from the stylesheet, so it's not that. So - what can cause a pagebreak in an epub file, without a page-break-after rule or visible bit of code around a given paragraph? What should I be looking for? This is all with EPUB, not KEPUB, if that's relevant. Also, I'm not great with terminology etc, so please explain any theories like I'm 5! |
|
|
|
|
|
#2 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 268
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
Also, because it has sometimes helped with issues like this in the past, I converted the file to AZW3, but the Calibre Editor still didn't show me any code that would explain the pagebreak.
|
|
|
|
|
|
#3 |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,499
Karma: 21099999
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
One possibility - you might try looking at the widows/orphans setting. Under ePub 2 you can set that and it can have the effect of pushing sentences to the next page - which looks a lot like a page break.
If you are using ePub 3 that wouldn’t be in the css, but it may be a default in your Kobo??? Others here are more knowledgeable about koboisms. Cheers, |
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,900
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Following on from the comment by Tuttle91, if you change the font size on your kobo, does the page break still occur at the same place or does it move with the changing font size?
If it stays at the same place, we'd need to see the ebook in total. |
|
|
|
![]() |
| Tags |
| epub, pagebreak |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unwanted pagebreak | travger | Conversion | 3 | 05-04-2014 05:40 AM |
| h1 pagebreak without h2 | bookdragon | Sigil | 5 | 03-03-2014 06:11 AM |
| HELP from Pagebreak !! Smashword | Tara198 | Writers' Corner | 4 | 07-06-2013 06:22 PM |
| 0.6.3 pagebreak before h2 only every second time? | flowoeB | Calibre | 4 | 07-31-2009 01:47 AM |
| XPath Help and Pagebreak | emellaich | Calibre | 3 | 07-28-2009 02:17 PM |