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
Created attachment 166648 [details] Original ODT with two lists
Created attachment 166649 [details] HTML export from original document
Created attachment 166650 [details] Screenshot of list formatting in HTML export
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.
Created attachment 167150 [details] Sample file where exported list are honored in XHTML
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.
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
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 ***
Bullet indentation issue is reported in: Bug 108727