Conversion from ODT to EPUB ignores "restart numbering" in numbered lists

Bug #2017568 reported by Paddy Landau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
New
Undecided
Unassigned

Bug Description

• Calibre version 6.16
• Operating system Linux Ubuntu 22.04

Summary: When converting an ODT document to EPUB, "Restart numbering" in a numbered list is ignored.

How to reproduce:

1. Create an ODT document, e.g. with LibreOffice.
2. Create two or more independent numbered lists.
3. Assign a numbering style to each list, e.g. the built-in "Numbering ivx". Each list continues numbering from the previous list.
4. Set "Restart numbering" on the first item in each list. Each list begins with 1 (or "i" or "a" depending on the style chosen).
5. Add the document to Calibre.
6. Use Calibre to convert the document to EPUB.
7. View the generated EPUB document.

What to expect:

1. Each list begins with 1 (or "i" or "a" depending on the style chosen).

What actually happens:

1. Each list continues numbering from the previous list.

This happens whether choosing EPUB version 2 or 3.

Sample ODT and generated EPUB documents attached. ODT document created with LibreOffice version 7.5.2.2.

Tags: numbering odt
Revision history for this message
Paddy Landau (paddy-landau) wrote :
Revision history for this message
Paddy Landau (paddy-landau) wrote :
Revision history for this message
Paddy Landau (paddy-landau) wrote :

I have discovered a workaround.

1. Export the ODT file as HTML.
2. Import the HTML file into Calibre, and convert that to EPUB.

Revision history for this message
Charles Haley (cbhaley) wrote :

Another workaround: in LibreOffice save the document as .docx. Convert that to EPUB.

Revision history for this message
Paddy Landau (paddy-landau) wrote :

@ cbhaley re comment #4

I've just tried this, and the .docx format results in a better-formatted .epub than does the .html.

So, thank you for that suggestion.

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.