Sorry, just now checked back.
I have a style sheet file "styles.css" that is pretty much a library of all formatting I might use.
I have it linked inside the html so that opening it within a browser has the formatting for quick visual-checks:
<head><link href="styles.css" rel="stylesheet" type="text/css"/></head>
When opening the book.html with Sigil directly, it loads the linked CSS and has it linked to the main html file. All formatting appears correct.
When you run the clean on it then all formatting with a "." is wiped and only the main "h1", "h2", "p", "hr", etc remain. All "p.center", "p.left", etc., has been removed.
Saving the loaded file as an epub and then closing/re-opening Sigil does not seem to stop the clean up from trying to clear all styles. I opened the html with sigil, saved as an epub, closed sigil, reopened the epub with sigil, and then cleaned css and all styles were still cleared.
|