Bug 133442 - Epub Ebook Export in Writer Ignores nested Multi-level Heading Entries when making its contents list.
Summary: Epub Ebook Export in Writer Ignores nested Multi-level Heading Entries when m...
Status: RESOLVED DUPLICATE of bug 114164
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) rc
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: EPUB-Export
  Show dependency treegraph
Reported: 2020-05-27 13:27 UTC by Bruce Armstrong
Modified: 2020-06-08 05:21 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

ODT Page with four level headings. (15.15 KB, application/vnd.oasis.opendocument.text)
2020-06-01 09:45 UTC, Bruce Armstrong

Note You need to log in before you can comment on or make changes to this bug.
Description Bruce Armstrong 2020-05-27 13:27:58 UTC
If multiple level Headings occur in a series on one page, when exported to Epub, only the highest level Heading is used and the rest are discarded. In my case, I can have up to four levels of headings nested, but only the highest one on each page series is used.

Perhaps the problem is that there is no text between the nested headings, but they are correctly written that way.

Steps to Reproduce:
1.Create nested headings eg Level 1, Level 2, Level 3, level 4 on same page with no text between them.
2. Create a table of contents from them to confirm they are formatted correctly and save the odt file.
3.Export to Epub and look at its contents to see if all entries are in the list.

Actual Results:
Only the top level heading is in the list.

Expected Results:
All of the headings should appear in the list, as in the odt table of contents.

Reproducible: Always

User Profile Reset: No

Additional Info:
This problem does not occur if there is text between the heading entries. Nesting one after another creates the problem.

Don't know if this happens in earlier versions.

Version: (x64)
Build ID: 747b5d0ebf89f41c860ec2a39efd7cb15b54f2d8
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win; 
Locale: en-AU (en_AU); UI-Language: en-GB
Calc: CL
Comment 1 Dieter 2020-05-29 08:09:23 UTC
Thank you for reporting the bug. Please attach a sample odt-document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it)
Comment 2 Bruce Armstrong 2020-06-01 09:45:02 UTC
Created attachment 161486 [details]
ODT Page with four level headings.
Comment 3 QA Administrators 2020-06-03 03:49:20 UTC Comment hidden (obsolete)
Comment 4 Bruce Armstrong 2020-06-08 01:02:59 UTC
It seems that the Epub Exporter only uses Level 1 headings and the heading at the start of a new page style to create its Table of Contents.

This does not work well, as it ignores all of the Sub-headings that should also be in the Table of Contents in a longer work and even inserts weird section 1 etc headings for Page styles that do not have any headings in them, such as the Title page, which should not be in the Table of Contents.

The Exporter should just use the Headings that the writer has used, and perhaps even give them the option of selecting which Heading levels they want used in the Table of Contents (eg Heading levels 1 and 2, but not 3 etc...)
Comment 5 Dieter 2020-06-08 05:21:19 UTC

*** This bug has been marked as a duplicate of bug 114164 ***