View Single Post
Old 12-03-2025, 01:57 PM   #10
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,126
Karma: 6404930
Join Date: Nov 2009
Device: many
Quote:
1. Empty EPUB, empty CSS
2. In xhtml: <p class="red">Test</p>
3. In css (linked of course) .red {color: red;}
4. Your text should be red. Is it? OK.
5. Now select ".red" in CSS file and use "Rename Selected Class"
6. Tada! Text is black and other problems described earlier also occur.
Okay, I can recreate this one but it has always been this way. When you are editing a css file the text of the last xhtml file is kept in a cache. When you run Rename the class when editing a css file, the actual xhtml file that uses that class gets changed but the cache that stores the xhtml when editing the CSS does not. It never has. I could invalidate the cache when running that command but Preview must have something to show when editing in the CSS. Updating the cache contents is not possible as it is only set when actually loading xhtml into Preview.

Again Sigil has always worked this way.

If you want that behaviour to change then we can look into that as a future feature request.

None of the code has changed in this area.
KevinH is offline   Reply With Quote