View Single Post
Old 05-16-2015, 08:52 AM   #7
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by frostschutz View Post
I use Calibre's style filtering to get rid of most offending styles.
Here is an example of a problem that can occur if you simply strip all line-height styles, instead of just the ones used for the main text:

On the left is an epub with a raisecap, the raisecap span has its line-height set to zero to prevent it affecting the line spacing of the rest of the paragraph. On the right is what happens when that line-height style is removed:
Attached Thumbnails
Click image for larger version

Name:	with-lh.png
Views:	312
Size:	27.9 KB
ID:	138354   Click image for larger version

Name:	without-lh.png
Views:	235
Size:	28.1 KB
ID:	138355  
GeoffR is offline   Reply With Quote