Duplicate ID error after converting from DOCX to EPUB

Bug #1658744 reported by John Chapman on 2017-01-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

After converting a DOCX file to EPUB I frequently get an error which prevents an epubcheck being passed. Running the calibre editor tool 'Check book' I get errors such as:
Duplicate id: toc_id_84 [index_split_085.html] Error index_split_085.html (line 11) The id toc_id_84 is present on more than one element in index_split_085.html. This is not allowed. Remove the id from all but one of the elements.
The offending line in this case would read:
<div id="toc_id_84" style="height:0pt"></div><h1 id="toc_id_84" class="block_14">
It's easily fixed if you understand HTML but might be challenging to those not so familiar with it.

It's not clear if this is a Word problem or the calibre conversion's problem. Sometimes I get one of these errors. at other times I get several.

I'm using the latest version of Word (Office 365). This error has been showing for a long time though.

Attach a DOCX file demonstrating/reproducing the problem to this bug report. You can do that by clicking the "Add attachment or patch" link at the bottom of the bug's page. If the file you are attaching is copyrighted, mark the bug as private. You can do this by clicking the tiny lock icon next to "This report contains Public information" in the top right area of the bug's page.

 status incomplete

Changed in calibre:
status: New → Incomplete
John Chapman (jchapman-w) wrote :

Here's an example file which causes the error.

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

 status fixreleased

Changed in calibre:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers