View Single Post
Old 08-15-2026, 08:31 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,665
Karma: 212342344
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
So did your backmatter xhtml already have a link to a stylesheet with the exact same name? Did that pulled in stylesheet file actually exist at the relative location pointed to in the backmatter file?
Can confirm that this is not the case. The newly added (templated) css file has its contents wiped out regardless of any css links in the existing xhtml file being added. In my case, it imported an image, and another differently named css file while erasing the contents of the newly added (templated) css file.

In case it helps track things down, this behavior can be eliminated by saving the epub after adding the new (templated) css file (before adding the xhtml file).

And it does need to be a templated css file to reproduce. I tried adding an empty css file (no template) and then adding something to the new css file before adding the xhtml file and nothing got erased after Add Existing (xhml file).

Seems to me that until saving the epub (after adding the templated css file with Add Empty CSS), nothing has been flushed to disk prior to running Add Existing and something is getting lost in the mix somehow.

Last edited by DiapDealer; 08-15-2026 at 09:51 AM.
DiapDealer is offline   Reply With Quote