View Single Post
Old 02-18-2013, 02:55 AM   #149
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by DNSB View Post
Do you mean where a chapter ends and then you get a blank page before the next chapter? The primary cause for that issue I've seen is code at the end of the chapter file adding blank lines or similar odd coding.
It isn't that. There is a bug where the last line of text in a chapter goes to the next page. I haven't seen it enough to see a pattern.
Quote:
In one book I recently purchased which was a conversion by Calibre from what appears from the start of chapter file headings to have been a Microsoft Word document, the end of chapter files looked like the sample below:

<p class="calibre39">&nbsp;</p>
<p class="calibre38">&nbsp;</p>
<div class="mbppagebreak" id="calibre_pb_27"></div>
</body>
</html>

If the end of the chapter text is near enough the end of screen, the two blank lines plus whatever is added within the <div> will give you a blank page. The stylesheet for this book shows calibre38 and calibre39 setting the text height to 1.25em and 1.33em respectively. The real question is why force 2.75 lines worth of blank space when the next chapter will be forced to start on a new page anyways?
I haven't really investigated these as I normally just delete them. But, I think this is an artefact of a calibre conversion. The original probably didn't split on chapters. The code there is something to put a space between the end of a chapter and the beginning of the next. When calibre converted and split the files, it split at the tag for the chapter which was the next line after that div.
davidfor is offline   Reply With Quote