ePUB->AZW3: incorrect styles on inline ToC

Bug #1474287 reported by Phssthpok on 2015-07-14
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Converting an ePub to AZW3 with a calibre-generated inline ToC, the entries have bullets next to them in the converted output. The HTML files are in the directory OEBPS/Text, but the inline ToC is generated in the root directory. The ToC appears as "part0001.html" in the AZW3 output, but this file refers to two non-existent style files:

<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="../../page_styles.css" rel="stylesheet" type="text/css"/>

Changing these to refer to the correct stylesheet filenames corrects the problem:

<link href="../styles/0001.css" rel="stylesheet" type="text/css"/>
<link href="../styles/0002.css" rel="stylesheet" type="text/css"/>

The ToC was generated in the ToC tool by deleting all existing ToC entries and selecting "Generate ToC from major headings" and then using "Insert inline table of contents".

The correct output is generated if the generated file "toc.xhtml" is renamed to "OEPBS/Text/toc.xhtml" prior to conversion.

Calibre version: 2.31 (Windows 32-bit)
OS: Windows 8.1 (64-bit)

Phssthpok (phssthpok) wrote :

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

 status fixreleased

Changed in calibre:
status: New → Fix Released
Phssthpok (phssthpok) wrote :

Attaching also the generated AZW3 file.

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

Other bug subscribers