Bug 108727 - sub bullet list point not indented on export to xhtml
Summary: sub bullet list point not indented on export to xhtml
Status: RESOLVED DUPLICATE of bug 66609
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.7.2 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-24 09:40 UTC by Robert Orzanna
Modified: 2023-07-27 20:16 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
indent.odt (9.11 KB, application/vnd.oasis.opendocument.text)
2017-06-24 09:41 UTC, Robert Orzanna
Details
exported html (2.67 KB, text/html)
2017-06-24 09:41 UTC, Robert Orzanna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Orzanna 2017-06-24 09:40:32 UTC
Description:
Used function: File > Export > .html

Actual Results:  
See the attached file examples. 



Expected Results:
Tested on Solus Budgie.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36
Comment 1 Robert Orzanna 2017-06-24 09:41:09 UTC
Created attachment 134241 [details]
indent.odt

source file
Comment 2 Robert Orzanna 2017-06-24 09:41:31 UTC
Created attachment 134242 [details]
exported html
Comment 3 Buovjaga 2017-06-28 16:47:54 UTC
Repro.

Arch Linux 64-bit, KDE Plasma 5
Version: 6.0.0.0.alpha0+
Build ID: f808c50c6eece87d515df3b84b1c774395b5d9bc
CPU threads: 8; OS: Linux 4.11; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on June 26th 2017

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)
Comment 4 QA Administrators 2018-06-29 02:45:51 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2018-06-30 14:08:06 UTC
Reverting to NEW - it is still not indented properly.

Arch Linux 64-bit
Version: 6.2.0.0.alpha0+
Build ID: cdaa5d8e9727a0a41f969ae29b0442f3ca2f67c0
CPU threads: 8; OS: Linux 4.17; UI render: default; VCL: gtk3; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group threaded
Built on June 30th 2018
Comment 6 QA Administrators 2019-07-01 02:47:00 UTC Comment hidden (obsolete)
Comment 7 Stéphane Guillou (stragu) 2021-06-23 13:28:42 UTC
Reproduced in:

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: e3086b58eb5427d520b86c185f9d911bb6f7a3a0
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-06-21_15:37:11
Calc: threaded
Comment 8 Stéphane Guillou (stragu) 2021-06-25 02:10:20 UTC
I tested exporting to XHTML on both Ubuntu 18.04 and Windows 10 with the same version of LO: 7.0.6

I noticed that the second line is indented just like in the original document when opening it with the older Firefox 78 (which my Windows machine is stuck with).
On Linux, both of the exports show the indent in the latest Firefox, version 89. So beware that, depending on your browser version, the indent might or might not show.

I noticed the bad nesting of the <ul> and <li> tags, but I think that the main issue is that the second element also has a: style="margin-left:0cm;" (which brings it back to the far left)
So is this bug report about "XHTML export does not use margin-left to indent nested lists"?

For reference, on Windows:

<body dir="ltr" style="max-width:21.59cm; margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm">
<ul>
<li>
<p class="P1" style="margin-left:0cm"><span class="Bullet_20_Symbols" style="display:block; float:left; min-width:0.635cm">•</span>This is the main point<span class="odfLiEnd">&nbsp;</p>
<ul>
<li>
<p class="P1" style="margin-left:0cm"><span class="Bullet_20_Symbols" style="display:block; float:left; min-width:0.635cm">◦</span>This is a sub point which is not properly indented on export to html<span class="odfLiEnd">&nbsp;</p>
</li></ul>
</li></ul>

And on Linux:

<body dir="ltr" style="max-width:21.59cm;margin-top:2cm; margin-bottom:2cm; margin-left:2cm; margin-right:2cm; ">
<ul>
<li>
<p class="P1" style="margin-left:0cm;"><span class="Bullet_20_Symbols" style="display:block;float:left;min-width:0.635cm;">•</span>This is the main point<span class="odfLiEnd"/> </p>
<ul>
<li>
<p class="P1" style="margin-left:0cm;"><span class="Bullet_20_Symbols" style="display:block;float:left;min-width:0.635cm;">◦</span>This is a sub point which is not properly indented on export to html<span class="odfLiEnd"/> </p>
</li></ul>
</li></ul>

As a side note: saving as HTML shows indents, but just uses the style of unordered lists in browsers (which means that reopening in LibreOffice loses the custom indentation and the custom bullets).
Comment 9 QA Administrators 2023-06-26 03:12:14 UTC Comment hidden (obsolete)
Comment 10 Stéphane Guillou (stragu) 2023-07-27 19:59:15 UTC
*** Bug 155477 has been marked as a duplicate of this bug. ***
Comment 11 Stéphane Guillou (stragu) 2023-07-27 20:16:57 UTC

*** This bug has been marked as a duplicate of bug 66609 ***