What is the problem?
I cannot open epub files of books which contain SVG images.
The XML in the content.opf of the generated epub is not valid, e.g.:
<item id="c217_c79dd6f560650b235f4970c96c113b7232e92bc9.svg" href="images/c217_c79dd6f560650b235f4970c96c113b7232e92bc9.svg" media-type="image/svg+xml; charset=utf-8; profile="https://www.mediawiki.org/wiki/Specs/SVG/1.0.0"" />
(The quoting is incorrect)
I suspect this is a bug in the way the strings are concatenated in Epub3Generator.php line ~95.
Oddly, I can generate valid PDFs of the same books.
Steps to reproduce problem
- Go to https://tools.wmflabs.org/wsexport/tool/book.php?lang=fr&format=epub&page=Le_Vingti%C3%A8me_Si%C3%A8cle
- Download the epub and try to view it