View Single Post
Old 04-07-2026, 12:38 PM   #4
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,528
Karma: 6774048
Join Date: Nov 2009
Device: many
Either way, I was able to use the Google AI to help write a CSSDenester.h code that will flatten nested css back to "normal" unnested css.

I have added it my personal c++ std::string cssparser repo. I will next take that code and rewrite it using Qt's QString and once tested will add it to Sigil's internal qCSSParser implemetation.

That way future versions of Sigil will produce flattened CSS when you reformat your css. That way your css is kept as viable as possible for older epub e-readers.

(In other words I was too lazy to completely rewrite our current cssparser to be tree based!).

Update:

This has now been added to Sigil master for testing.

Last edited by KevinH; 04-07-2026 at 02:45 PM. Reason: Update that qCSSDenester,h is now in Sigil master
KevinH is offline   Reply With Quote