Bug 87418 - Bad ordered list <ol> after saving ODT document as HTML.
Summary: Bad ordered list <ol> after saving ODT document as HTML.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.4.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:html
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2014-12-17 17:41 UTC by Piotr Orlewicz
Modified: 2023-11-24 17:05 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshots from example document that shows where is the bug. (258.08 KB, application/zip)
2014-12-17 17:41 UTC, Piotr Orlewicz
Details
Sample ODT document, that when you save as HTML will contain the wrong section numbering. (1.70 MB, application/vnd.oasis.opendocument.text)
2014-12-21 16:28 UTC, Piotr Orlewicz
Details
odt to be saved in html (8.55 KB, application/vnd.oasis.opendocument.text)
2017-05-03 16:07 UTC, Alexey Khoroshilov
Details
resulting html (739 bytes, text/html)
2017-05-03 16:08 UTC, Alexey Khoroshilov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Orlewicz 2014-12-17 17:41:23 UTC
Created attachment 110959 [details]
Screenshots from example document that shows where is the bug.

After you save the ODT document as HTML, lists are wrong numbered. Some later sections that were continuous in the ODT document, in the HTML file numbering starts from the beginning. Are also badly formatted multilevel numbering. After saving to HTML is a single-level numbering. It seems that in HTML file, is missing start attribute of <ol> tag. Also other attributes responsible for numbered list formating is missing probably missing.

See attached examples.
Comment 1 Urmas 2014-12-19 19:50:20 UTC
HTML lists are just not working this way.
Comment 2 Robinson Tryon (qubit) 2014-12-21 08:15:45 UTC
(In reply to Piotr Orlewicz from comment #0)
> After you save the ODT document as HTML, lists are wrong numbered. 
> [...]
> See attached examples.

To focus on just one piece of the bug report, the attached images do appear to show incorrect numbering of the lists after export.

Could you please attach an example file that shows this behavior?

Thanks!

Status -> NEEDINFO

(Please change the status back to UNCONFIRMED after the test document is uploaded)
Comment 3 Piotr Orlewicz 2014-12-21 16:28:49 UTC
Created attachment 111114 [details]
Sample ODT document, that when you save as HTML will contain the wrong section numbering.

I attached a sample ODT file, that when you save it as HTML will contain wrong numbered section. PDF exported from this document are perfect.
Perhaps the information will be important that the sample document was created in many different version of Libre Office Writer. The first version was created in much older editor. While the  document was extended for many months,  Libre Office was successively updated.
Comment 4 Robinson Tryon (qubit) 2014-12-21 16:56:16 UTC
(In reply to Piotr Orlewicz from comment #3)

REPRO Steps:

> I attached a sample ODT file,

1) Save and open attachment 111114 [details] with LibreOffice
2) Save as HTML
3) Export as PDF

RESULT:

> that when you save it as HTML will contain
> wrong numbered section.

Bug CONFIRMED.

On page 8 (do a case-sensitive search for 'Przed') of the ODT, we have
 2  WAŻNE !!!
     ...
 2.1  Przeznaczenie.
    ....
 2.2  Bezpieczeństwo nurkowania.

In the saved HTML, this appears as

 2.  WAŻNE !!!
     ...
 1.  Przeznaczenie.
    ....
 1.  Bezpieczeństwo nurkowania.


> PDF exported from this document are perfect.

The numbering on page 8 appears to be correct, yes.


Status -> NEW
Hardware -> All
OS -> All
Comment 5 QA Administrators 2016-01-17 20:02:06 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2017-03-06 13:48:10 UTC Comment hidden (obsolete)
Comment 7 Alexey Khoroshilov 2017-05-03 16:06:15 UTC Comment hidden (off-topic)
Comment 8 Alexey Khoroshilov 2017-05-03 16:07:42 UTC Comment hidden (off-topic)
Comment 9 Alexey Khoroshilov 2017-05-03 16:08:26 UTC Comment hidden (off-topic)
Comment 10 QA Administrators 2019-02-17 03:44:38 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2021-04-07 03:53:12 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2023-04-08 03:25:25 UTC Comment hidden (obsolete)
Comment 13 Mike Kaganski 2023-11-24 17:04:13 UTC
(In reply to Alexey Khoroshilov from comment #7)

This is completely unrelated, and is fixed in new versions.