Bug 148690 - Ordered lists created with list styles lose the numbering when Untitled document saved as .docx, while direct formatted ordered lists and unordered list styles do not
Summary: Ordered lists created with list styles lose the numbering when Untitled docum...
Status: RESOLVED DUPLICATE of bug 150197
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Bullet-Number-Outline-Lists
  Show dependency treegraph
 
Reported: 2022-04-20 16:54 UTC by sdc.blanco
Modified: 2022-08-02 10:51 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample DOCX (5.98 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-05-12 09:50 UTC, Timur
Details
The example document made in 2 days old master vs current (448.99 KB, image/png)
2022-08-02 10:48 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2022-04-20 16:54:16 UTC
1. Open a new document.
2. Choose a direct formatted ordered list and enter a few items.
3. Now choose a list style for an ordered list and enter a few items.
4. Save as .docx
5. Open with LO or Word.

Actual result: Direct formatted ordered list is fine.
               List style loses its numbering.

Tested with 7.2.6.2 and 7.4.0.0 (in Safe Mode)
Comment 1 Timur 2022-04-20 17:23:09 UTC
Please attach sample ODS and confirm you didn't find existing report.
Comment 2 sdc.blanco 2022-04-21 07:46:10 UTC
I confirm that I did not find any open ticket that was close to this one.

If document is saved as .odt first and then saved as .docx, no problem.

So  here is an alternative aid...

-------Paste into New document-----

Here are three lines which
should be formatted with a
direct formatting option.

Here are three lines which
should get an ordered list style
applied to them

-------------------------

Save New document as .docx

Result (in Word and LO):  the list style number is lost.
Comment 3 Timur 2022-04-21 14:58:09 UTC Comment hidden (obsolete)
Comment 4 sdc.blanco 2022-04-21 15:54:54 UTC
(In reply to Timur from comment #3)
> Maybe there's some detail.
For the list style, use:  Numbering a b c List Style.

No repro with Numbering 1 2 3 List Style.

And still need to save a new Untitled document as Word 2007-365 (.docx)
Comment 5 Timur 2022-05-10 14:18:08 UTC
No repro 6.2. Repro 7.4+ with Numbering 123. But next time I tested, also couldn't reproduce. There's something fishy here. 
I set New. Could be a regression.
Comment 6 sdc.blanco 2022-05-10 14:52:41 UTC
Have just tested again.  Agree that something is fishy...

1. Still no problem if saved first as .odt and then saved as .docx.
2. But Untitled document saved as .docx, lost both Numbering 123 List Style and Numbering abc List Style, but did not lose DF numbering.

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4ea44fdb19e568093ab1e0549c3ffa33296a486b
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL
Build from 07.05.2022

Previous testing was with a master build from around 18.04.2022
Comment 7 sdc.blanco 2022-05-12 08:57:09 UTC
@Timur - a new test:

1. New document
2. DF some paras with ordered list
3. More paras with 4 different ordered list styles.
4. More paras with unordered list styles.
5. Save as .docx


Actual:  As before, DF is preserved.  As before, all the ordered list styles are lost.  The unordered list styles are preserved.

6.  Restart LO, open the saved .docx
7.  Add back the unordered list styles, save and reload.

Actual:  unordered list styles are still lost.

In sum:  seems like:  if New document is saved as .docx with ordered list styles, then these are lost, and continue to be lost when saved as .docx.
But no indication that there is a problem with unordered list styles.

Tested with:

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4ea44fdb19e568093ab1e0549c3ffa33296a486b
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL


And as a speculation....maybe the following commit is relevant

Vasily Melenchuk <vasily.melenchuk@cib.de>    Mon Jun 14 14:27:56 2021 +0300

new ODF numbered list parameter loext:num-list-format

https://git.libreoffice.org/core/+/9987b518fca1476bd0ce8c86bcf6ac7c81f7b580
Comment 8 Timur 2022-05-12 09:50:13 UTC
Created attachment 180073 [details]
Sample DOCX

How they say... please attach sample. Here it is, document 1st saved as DOCX.

Note "List from toolbar". 
Mark "List from List styles" and apply abc list from List styles.
Save and reopen. 

I don't think it's about abc, when there's a problem, also 123 will do. 
This sample seems to be consistent in being wrong.
Comment 9 sdc.blanco 2022-05-12 10:34:54 UTC
Do not repro difference between "toolbar" and "sidebar".

Test:
1. New document
2. 3 paras and Numbering 123 list style from Formatting (Styles) bar.
3. 3 paras and Numbering 123 list style (from Sidebar, List Styles)
4. save as .docx

Actual:  both "toolbar" and "sidebar" ordered list styles lose numbering.

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4ea44fdb19e568093ab1e0549c3ffa33296a486b

Changing bug summary ....

Additional information:

1. Reload the .docx file, then the list styles have changed to WWNum1
2. In attachment 180073 [details] many of the lists have WWNumx list styles.

Another speculation that might explain differences between earlier and later testing is:  https://gerrit.libreoffice.org/c/core/+/133124
Comment 10 Justin L 2022-08-01 21:39:34 UTC
bug 150197 fixed this, right?
Comment 11 Gabor Kelemen (allotropia) 2022-08-02 10:48:25 UTC
Created attachment 181547 [details]
The example document made in 2 days old master vs current

I can confirm the issue is gone with original steps.
1, Copy paragraphs from comment #2 into a new document
2, Format first 3 with Formatting toolbar - Numbering dropdown - Any style
3, Format second 3 with Styles sidebar - List styles - A Numbering style
4, Save as docx, reload

Result: Bullet symbol of the first 3 paragraphs is kept, while the second 3 paragraphs is disappearing.

Bad in:
Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 20cc897dddb8ae7cee3c6d66e9cebba9da543c3a
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded

Numbering of the second 3 paras is kept in:
Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 1abb82c0bc8c46acac8b2644e645725ff92dd538
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded
Comment 12 Gabor Kelemen (allotropia) 2022-08-02 10:51:38 UTC
(In reply to Justin L from comment #10)
> bug 150197 fixed this, right?

Let's assume so, many thanks for fixing this :)

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