[Libreoffice-bugs] [Bug 108727] sub bullet list point not indented on export to xhtml

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jun 25 02:10:20 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=108727

stragu <stephane.guillou at member.fsf.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|Linux (All)                 |All

--- Comment #8 from stragu <stephane.guillou at member.fsf.org> ---
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"> </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>

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).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210625/feccd1fb/attachment.htm>


More information about the Libreoffice-bugs mailing list