Download it now!
Bug 117402 - Invalid HTML for nested lists with Impress Preview in Web Browser
Summary: Invalid HTML for nested lists with Impress Preview in Web Browser
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: HTML-Import
  Show dependency treegraph
Reported: 2018-05-03 07:29 UTC by lechten
Modified: 2019-05-15 06:41 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

Sample presentation with nested list (11.33 KB, application/vnd.oasis.opendocument.presentation)
2018-05-03 07:31 UTC, lechten

Note You need to log in before you can comment on or make changes to this bug.
Description lechten 2018-05-03 07:29:40 UTC
In Impress, function File->Preview in Web Browser generates the presentation in HTML. Nested lists lead to invalid HTML, where sublists are not part of the preceding list item.  See there for a discussion how HTML lists may look like:
Option 1 is what Impress produces, while option 2 would be correct.

Steps to Reproduce:
1. Open new presentation
2. Create nested list
3. Validate HTML shown after File->Preview in Web  Browser

Actual Results:  
Invalid HTML.
I'm not sure whether this will be displayed correctly, but I'll try anyways:

<li>A list item</li>
<li>Deeper Nesting</li>

Expected Results:
Valid HTML

<li>A list item
<li>Deeper Nesting</li>

Reproducible: Always

User Profile Reset: No

Additional Info:

User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
Comment 1 lechten 2018-05-03 07:31:30 UTC
Created attachment 141856 [details]
Sample presentation with nested list

The attachment provides a sample presentation with a nested list.
Comment 2 Julien Nabet 2018-05-05 07:44:28 UTC
On pc Debian x86-64 with master sources updated yesterday, I could reproduce this.
Comment 3 Julien Nabet 2018-05-07 14:08:37 UTC
Miklos: I noticed f0e3a36f6508dcfa0a3c672e15e15f3582e02110 and tried it locally.
Badfully it didn't work but thought you might be interested in this one since it may concern the same code area.
Comment 4 QA Administrators 2019-05-09 03:02:19 UTC Comment hidden (obsolete)
Comment 5 lechten 2019-05-15 06:41:41 UTC
The bug is still present with the newest stable version:
Build ID: aecc05fe267cc68dde00352a451aa867b3b546ac
CPU threads: 2; OS: Linux 4.14; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded