View Single Post
Old 02-25-2017, 03:48 AM   #11
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
There is a newish (since version 2.53) conversion setting in Calibre that I haven't looked into much yet: Look & Feel > Transform Styles. It allows you to set more sophisticated rules than simple filters.

https://manual.calibre-ebook.com/edi...css-properties

I haven't worked how to do it in a way that handles all cases where the publisher has used different types of unit (px, pt, em), but it might be possible to create rules that would only remove line-height properties that set the height strictly greater than 1em and less than about 1.5em, which would be a big improvement on simply removing all instances of line-height.

Last edited by GeoffR; 02-25-2017 at 03:58 AM. Reason: greater than 1em and less than 1.5em
GeoffR is offline   Reply With Quote