Bug 137692 - XHTML export does not keep bulleted and numbered list indentations
Summary: XHTML export does not keep bulleted and numbered list indentations
Status: RESOLVED DUPLICATE of bug 66609
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2020-10-23 02:17 UTC by Stéphane Guillou (stragu)
Modified: 2023-07-27 20:16 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Original ODT with two lists (13.48 KB, application/vnd.oasis.opendocument.text)
2020-10-23 02:18 UTC, Stéphane Guillou (stragu)
Details
HTML export from original document (6.11 KB, text/html)
2020-10-23 02:19 UTC, Stéphane Guillou (stragu)
Details
Screenshot of list formatting in HTML export (41.87 KB, image/png)
2020-10-23 02:20 UTC, Stéphane Guillou (stragu)
Details
Sample file where exported list are honored in XHTML (242.09 KB, application/vnd.oasis.opendocument.text)
2020-11-09 17:56 UTC, Olivier Hallot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2020-10-23 02:17:23 UTC
Description:
Exporting a document containing lists, from ODT to HTML, creates a HTML file with:

- No indentation before the bullets/number
- No indentation for overflowing lines (i.e. they start at the left margin, are not aligned with the first line

Steps to Reproduce:
1. Create a document with bulleted and/or numbered lists, using the Text Body style (or open the attached ODT)
2. File > Export... > select file format "XHTML (.html;.xhtml)" > Save
3. Open resulting HTML file in a web browser (tested with Firefox and Chromium)

Actual Results:
The indentation before bullets/numbers is not kept; the indentation for overflow lines (i.e. when an item is spread across several lines) is not kept either (i.e. not aligned with the start of the first line).

Expected Results:
The format is conserved in the HTML output.


Reproducible: Always


User Profile Reset: No



Additional Info:
Tested with:

Version: 7.0.2.2
Build ID: 00(Build:2)
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.2_rc2-0ubuntu0.18.04.2
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2020-10-23 02:18:57 UTC
Created attachment 166648 [details]
Original ODT with two lists
Comment 2 Stéphane Guillou (stragu) 2020-10-23 02:19:41 UTC
Created attachment 166649 [details]
HTML export from original document
Comment 3 Stéphane Guillou (stragu) 2020-10-23 02:20:56 UTC
Created attachment 166650 [details]
Screenshot of list formatting in HTML export
Comment 4 Olivier Hallot 2020-11-09 17:55:35 UTC
This is tricky. You need to play with the paragraph style settings 
- Indents and spacings
- Outline and numbering
and its associated list style:
- Position

An attached template file used in LibreOffice Guide is attached. Export to XHTML and see the results. Character style deliberately colored for rapid catch-up.
Comment 5 Olivier Hallot 2020-11-09 17:56:43 UTC
Created attachment 167150 [details]
Sample file where exported list are honored in XHTML
Comment 6 Stéphane Guillou (stragu) 2020-11-24 06:55:36 UTC
Hi Olivier

In your example document, section "Lists > Numbered lists", you can see that the list indentation is respected, but the overflow line in item 1b (that uses the style Numbering 2) is not aligned with the first one.

What do you mean by one "needs to play with the paragraph style settings"? Which settings specifically?

But I guess the issue here is fairly simple: a stock list style looks different when exported to XHTML, with both the list indentation and the overflow text indentation not respected. Users can expect to see the same indentation in the resulting HTML file, without having to further play with settings blindly and repeatedly exporting to XHTML to see if it does work.
Comment 7 Stéphane Guillou (stragu) 2021-05-18 04:28:12 UTC
Changing the title to "XHTML" because this is specific to exporting the XHTML. The issue does not come up when saving as HTML, the indentation actually looks great.

Tested with:

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 6b09276d157abada74e1a4989700139167207778
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-05-14_04:32:30
Calc: threaded
Comment 8 Stéphane Guillou (stragu) 2021-05-18 12:28:26 UTC
We've got two issues here: the indentation of the "overflow" lines, and the lack of indentation in lists and headings. The first issues is actually a duplicate of bug 66609, so for sake of simplicity, I am marking this as a duplicate.

*** This bug has been marked as a duplicate of bug 66609 ***
Comment 9 Stéphane Guillou (stragu) 2021-06-23 13:27:25 UTC
Bullet indentation issue is reported in: Bug 108727