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

Bug #1788187 reported by Reinaert Albrecht
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

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.

Revision history for this message
Reinaert Albrecht (rtega) wrote :
Revision history for this message
Reinaert Albrecht (rtega) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

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
Revision history for this message
Reinaert Albrecht (rtega) wrote :

Thanks! That was quick!

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.