Some PML conversions cause FlightCrew errors

Bug #1839689 reported by Simon Burge on 2019-08-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Two PML conversions cause FlightCrew error reports.

\w="85%" for a horizontal rule/line causes "Error schema not satisfied : attribute 'width' is not declared for element 'hr' near column 35". This generates :
    <hr width="85%" class="calibre2"/>
If I move the width= bit in to the CSS class then the FlightCrew error is fixed. However if there's more than one length horizontal line I need a separate CSS class for each width.

\X0\cPROLOGUE\c\X0 to create a chapter title with the \c centre tags inside the chapter tags causes "Error schema not satisfied : element 'div' is not allowed for content model '(a|br|span|bdo|map|object|img|svg|tt|i|b|big|small|em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acronym|sub|sup|input|select|textarea|label|button|ins|del|script)' near column 126". This generates :
    <h2 class="calibre3" id="calibre_pb_0"><span id="pml_toc-0" class="calibre4"></span><div class="calibre5">PROLOGUE</div></h2>
If I change the two "span" to "div" it fixes the FlightCrew error. I'm not sure if that is the best fix though! It works for me. :)

Please let me know if you'd rather two separate bug reports for these.

Simon Burge (fj-calibre) wrote :

Neither of those errors are meaningful. They will not cause any
rendering issues in any reader. However, since they are easy to fix, I
will do so.

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
Simon Burge (fj-calibre) wrote :

Thanks! Yes, I couldn't see anything obviously looking wrong with the epubs on a Kobo. But nice to have the FlightCrew warnings fixed. Appreciate the fast response and quick fix!

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

Other bug subscribers

Bug attachments