View Single Post
Old 03-23-2008, 09:40 PM   #26
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,049
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by nrapallo View Post
EDIT: Was DELETED, but on second thoughts, I'll just add that I also ensure that there are no stray blank line(s) BEFORE a page break. That means that any:
Code:
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>

before a

<p style="page-break-before:always">
gets removed/deleted by me. The consequence of NOT doing so is that there can be situations where an unwarranted 'blank page' gets inserted. The reason is that the stray/extra blank line may allow the 'text' to continue onto a new page (which is now blank!) and then the page break comes along and that blank page stays there! Yuk!

This is sometimes unavoidable when the image used is longer than wider and bleeds into the bottom. This situation can only be fixed by re-sizing the image to the device's dimensions or inserting width/height specifications within the <img> tag. Either way you loose the generality of the code and need to re-do this resizing for the other .IMP device (REB1200).

Likewise, I also like remove stray blank lines after "THE END". Nothing more annoying than reaching "THE END" and there being one more page to read; only to find out its BLANK!
Can't you have mobi2imp do all that work for you? It would help for those of us who do not do such cleaning.
JSWolf is offline   Reply With Quote