05-02-2017, 04:07 PM | #1 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Mar 2016
Device: Ipad mini 2
|
Calibre unwanted page breaks
Help!! i have an epub in Calibre and can't get rid of page breaks. The problem is the page breaks occur randomly in the middle of all chapters. I will obviously keep page breaks after each chapter but how do I get rid of breaks in the middle of chapters? the Paragraph remove spacing option doesn't solve this? In the file preview it looks file but in Ibooks it shows all the gaps. pulling my hair out on this one. how can something so simple be so complicated??
|
05-02-2017, 04:22 PM | #2 |
Resident Curmudgeon
Posts: 73,974
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Are the page breaks CSS related or are they because of the end of the file?
|
Advert | |
|
05-02-2017, 04:35 PM | #3 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Mar 2016
Device: Ipad mini 2
|
I'm useless at this coding stuff. When I do a check it brings up the error: Warning [1 / 95]
stylesheet.css (line: 104 column: 3) This CSS construct is not recognized. That means that it most likely will not work on reader devices. Consider replacing it with something else. Where it breaks the coding is </span></div><div id="box3_2413" class="para-normal-local2"><span class="char-normal-local3"> completely lost in this. sure theres a shortcut to this. However if I had to do each one manually I'd need to know how to do one. |
05-02-2017, 04:42 PM | #4 |
Resident Curmudgeon
Posts: 73,974
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Can you post your CSS? There may be a page break command in there.
Also, what is contents of line 104 of your CSS? |
05-02-2017, 04:49 PM | #5 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Mar 2016
Device: Ipad mini 2
|
this is just a small part of the CSS style sheet. I notice 'page-break-inside: avoid;
calibre3 { background-color: white; color: black; display: block; font-size: 1.29167em; line-height: 1.2; padding-left: 0; padding-right: 0; margin: 0 5pt } .calibre4 { border-bottom: 0; border-top: 0; display: block; margin-bottom: 0; margin-top: 0; padding-bottom: 0; padding-top: 0; page-break-inside: avoid; text-indent: 1.5em |
Advert | |
|
05-02-2017, 04:55 PM | #6 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Mar 2016
Device: Ipad mini 2
|
This is line: 104 column: 5 -webkit-font-feature-settings: "liga" 0;
|
05-02-2017, 05:05 PM | #7 |
Resident Curmudgeon
Posts: 73,974
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
05-02-2017, 05:06 PM | #8 |
Resident Curmudgeon
Posts: 73,974
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
That's not the code that would cause a page break. That code it to try to prevent a page break. The entire CSS should be posted. It it's long, either put it in a spoiler or a code block.
|
05-02-2017, 05:13 PM | #9 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Mar 2016
Device: Ipad mini 2
|
have to delete 95 instances manually. 10 minutes. will revert and see if works. fingers crossed.
|
05-02-2017, 05:46 PM | #10 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Mar 2016
Device: Ipad mini 2
|
ok done a find and delete with the 95 instances. re ran check and it said no errors. I saved the file and opened again and it still has the breaks in iBooks!! Errors are gone but breaks still there. bizarre.
|
05-02-2017, 06:12 PM | #11 |
Bookaholic
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
Are the chapters each in their own file inside the ePub?
|
05-02-2017, 06:17 PM | #12 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Mar 2016
Device: Ipad mini 2
|
Hi Brian. yes chapters all separate inside epub
|
05-02-2017, 06:32 PM | #13 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Mar 2016
Device: Ipad mini 2
|
Still have the large gaps/page breaks within the chapters of epub. Is there anything simple way or simple code (maybe from W3schools) I can implement such as {page-break-after: always;}? Never thought such a simple issue would be this painful. I only want page breaks after each chapter. Hopefully can resolve so I know going forward with epub conversions. Help!!
|
05-02-2017, 06:47 PM | #14 |
Grand Sorcerer
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Why not scramble the book and post it? See https://www.mobileread.com/forums/sh...d.php?t=267998
|
05-02-2017, 06:58 PM | #15 |
Enthusiast
Posts: 43
Karma: 10
Join Date: Mar 2016
Device: Ipad mini 2
|
Thanks Peter. Is it a plug in? need to figure out how to add to Calibre for mac
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unwanted page breaks being inserted | Phssthpok | Conversion | 3 | 01-10-2017 09:14 AM |
PRS-T1 Long paragraphs cause unwanted page breaks on PRS-T1 | entodoays | Sony Reader | 2 | 03-11-2014 06:21 AM |
unnecessary/unwanted page breaks | bgoldnyxnet | ePub | 5 | 02-06-2014 05:56 PM |
Adding page breaks in Calibre breaks ePubcheck validation | bookraft | Conversion | 16 | 03-01-2011 01:23 PM |
Calibre making unwanted chapter breaks | PatNY | Calibre | 6 | 10-08-2010 09:58 PM |