|
I noticed a potential issue with epubsana.
In some cases, for example when the OPF is accidentally damaged by a Sigil 2.8.5 bug (issue #903), a manifest entry may be missing even though the corresponding XHTML file is still present in the EPUB.
The CLI version correctly asks for confirmation before dropping the orphaned spine itemref. However, the Sigil plugin applies this fix automatically, without asking.
I think epubsana should first check whether the missing file actually exists in the EPUB and, if so, restore the manifest entry rather than remove the spine reference.
|