When creating epub references with spaces in content.opf should be transformed in %20

Bug #1788187 reported by Reinaert Albrecht on 2018-08-21
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Calibre 3.29 linux

When ebook-convert creates an epub the references in content.opf shouldn't contain any whitespace but should instead be converted into %20 (https://www.w3.org/TR/xml11/#AVNormalize). This is done correctly in the toc.ncx file but not in content.opf.

You can try to convert the attached file with the following command:
ebook-convert *02*html worksnot.epub --chapter="//*[((name()='h3' or name()='h2'))]" --page-breaks-before="//*[name()='h3' or name()='h2']"

Certain ereaders show only two pages when converted with ebook-convert.

Reinaert Albrecht (rtega) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Reinaert Albrecht (rtega) wrote :

Thanks! That was quick!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers