View Single Post
Old 12-09-2019, 08:59 AM   #5
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: 8,809
Karma: 6000000
Join Date: Nov 2009
Device: many
That can not easily be done as Sigil does not use order preserving hashes for retaining attribute order (as attribute order is not significant in xhtml or xml). That type of QHash really does not exist in Qt. Hashes/dicts that retain order are built into python.

This is something on my wish list for Sigil 2.0 not 1.0. That said, a regex replacer "dry-run" sounds like it would be better as a plugin.

Quote:
Originally Posted by najgori View Post
after search&replace in calibre you can compare code before and after replacement, so you can check for regex errors.
KevinH is offline   Reply With Quote