Sigil 0.8.6 and CSS cleanup tool bug
I have a standard CSS file that I load with my html files into Sigil when creating a new ePub. Before saving my final file I will clean up by using the tools option to delete unused stylesheet classes.
Here is something I noticed:
When manually loading the CSS file (Styles - Add existing file) and manually linking the file to the html (link stylesheets) the delete unused works correctly. Only the unused classes are removed from the loaded CSS file.
However, when the CSS is referenced in the html (<link href> in the <head>) and Sigil loads the CSS automatically when you open the html with Sigil, the delete unused does not work correctly. At this point it tries to clear out almost all of the classes. The only ones I have that remain are the headers (h1, h2, etc.)
|