Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
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
Old 02-04-2023, 05:45 AM   #2
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,316
Karma: 238048979
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Has never happened to me, and I've converted thousands of ebooks over the past 11 years. Something must be amiss in your settings, or in the css of the books.
Sirtel is online now   Reply With Quote
Advert
Reply

Tags
settings


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bottom margin question mzel KOReader 9 12-11-2021 05:14 PM
How to disable CSS property in viewer? odonterla Calibre 2 05-14-2020 10:50 PM
Top-margin (bottom-margin?) for Kobo? Notjohn Sigil 14 02-28-2015 06:43 AM
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; } cybmole Conversion 15 02-12-2011 11:57 AM
calibre ignore margin-top and margin-bottom bender Calibre 2 12-11-2009 06:58 AM


All times are GMT -4. The time now is 08:07 AM.


MobileRead.com is a privately owned, operated and funded community.