Okay, in my internal build of Sigil I now have sanitycheck.py making sure that the xml declaration header is there, that it comes before any doctype, html, body, etc.
I will add this to a future release.
I just tested it against the op's test.epub and it does report a problem with that line. The xml header in the nav was just fine.
I am just not sure if this will help much given how simple the SanityCheck (Well Formed EPUB) check is in Sigil compared to the much much more thorough epubcheck.
This seems to be a rare type of failure.
Last edited by KevinH; 06-21-2024 at 02:02 PM.
|