Bug 124339 - HTML import: unordered list after ordered list is rendered as ordered list
Summary: HTML import: unordered list after ordered list is rendered as ordered list
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer Web (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:html
Depends on:
Blocks: HTML-Import
  Show dependency treegraph
 
Reported: 2019-03-27 08:03 UTC by Andras Timar
Modified: 2019-08-13 11:24 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andras Timar 2019-03-27 08:03:52 UTC
Open this simple HTML in Libreoffice:

<html>
    <body>
        <ol>
            <li>
                <p>List Item 1</p>
                <ol>
                    <li>Ordered list 1</li>
                    <li>Ordered list 2</li>
                </ol>
            </li>
            <li>
                <p>List Item 2</p>
                <ul>
                    <li>This should be</li>
                    <li>unordered list</li>
                    <li>with bullets!</li>
                </ul>
            </li>
        </ol>
    </body>
</html>

Actual result:

    1. List Item 1
        1. Ordered list 1 
        2. Ordered list 2 
    2. List Item 2
        1. This should be 
        2. unordered list 
        3. with bullets! 

Expected result:

    1. List Item 1
        1. Ordered list 1 
        2. Ordered list 2 
    2. List Item 2
        ◦ This should be 
        ◦ unordered list 
        ◦ with bullets! 

It does not work the other way around as well, when the first list is <ul> and second is <ol>, the second becomes unordered as well.
Comment 1 Gabor Kelemen 2019-03-27 10:32:53 UTC
Just a side note: due to the recent Bugzilla outage, commit 

https://cgit.freedesktop.org/libreoffice/core/commit/?id=15e9e6d12aa2d49e114ec0cf8326f2264ccf2640 

references this bug number. 
The problem fixed there was re-reported as bug #124345 just in case.
Comment 2 Buovjaga 2019-08-13 11:24:29 UTC
Repro

Version: 6.4.0.0.alpha0+ (x64)
Build ID: ed882d693f37779e3a09641e7cd43b7a925d2312
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-07-25_00:58:18
Locale: fi-FI (fi_FI); UI-Language: en-US
Calc: threaded