Bug 99960 - Wrong numbering of chapters in XHTML export
Summary: Wrong numbering of chapters in XHTML export
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
5.1.3.2 release
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2016-05-20 03:36 UTC by Victor Porton
Modified: 2018-06-27 13:19 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A file producing a wrong XHTML export (8.25 KB, application/vnd.oasis.opendocument.text)
2016-05-20 03:36 UTC, Victor Porton
Details
A wrong HTML file (2.73 KB, text/html)
2016-05-20 03:36 UTC, Victor Porton
Details
a wrong chapter reference when exporting XHTML (8.48 KB, application/vnd.oasis.opendocument.text)
2016-05-20 03:42 UTC, Victor Porton
Details
a XHTML file with a wrong chapter reference number (3.01 KB, text/html)
2016-05-20 03:43 UTC, Victor Porton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Porton 2016-05-20 03:36:25 UTC
Created attachment 125180 [details]
A file producing a wrong XHTML export

When exporting the attached .odt file to XHTML format, the produced HTML file has wrong (different than the original .odt file) numeration of chapters.

In a real-world workflow this caused also an internal link to a chapter display a wrong chapter number in the link. (I don't send an example with a link, because if you fix the error described in the previous paragraph of this bug report, the problem with wrong internal links will be fixed as well.)
Comment 1 Victor Porton 2016-05-20 03:36:55 UTC
Created attachment 125181 [details]
A wrong HTML file
Comment 2 Victor Porton 2016-05-20 03:42:42 UTC
Created attachment 125182 [details]
a wrong chapter reference when exporting XHTML
Comment 3 Victor Porton 2016-05-20 03:43:06 UTC
Created attachment 125183 [details]
a XHTML file with a wrong chapter reference number
Comment 4 Buovjaga 2016-05-26 12:12:11 UTC
Confirmed with attachment 125180 [details] 

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.0.alpha0+
Build ID: 60041cb237ea73c2c1885dd6afd99d88780c2dfc
CPU Threads: 8; OS Version: Linux 4.5; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Built on May 26th 2016
Comment 5 QA Administrators 2018-06-27 02:47:39 UTC Comment hidden (obsolete)
Comment 6 Victor Porton 2018-06-27 13:19:50 UTC
Tested with LibreOffice 6.0.3.2 00m0(Build:2) on Ubuntu 18.04. It works now.