View Single Post
Old 02-04-2023, 03:28 AM   #1
mcandre
Connoisseur
mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!mcandre , Klaatu Barada Niktu!
 
Posts: 57
Karma: 5000
Join Date: Oct 2012
Device: Kindle
How to disable margin-bottom property on hidden_content class

When I use Calibre to convert ebooks, then it adds a completely new property to a .hidden_content class:

.hidden_content {
display: none;
margin-bottom: 0.7em;
}

The margin-bottom then results in ebooks adding hundreds of useless blank pages between the chapters.

As a workaround, I'm developing a rather involved xmlstarlet script to strip the hidden and hidden_content-class tags from my books. (Neither the Calibre built-in style nor html tag rules engine is able to easily remove these.)

https://github.com/mcandre/nile
mcandre is offline   Reply With Quote