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
after search&replace in calibre you can compare code before and after replacement, so you can check for regex errors.
|