Bug 147673 - LO seems to import/generate unused MS Word numbering styles
Summary: LO seems to import/generate unused MS Word numbering styles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
(earliest affected) alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
Keywords: filter:doc
Depends on:
Blocks: DOC-Bullet-Number-Lists
  Show dependency treegraph
Reported: 2022-02-26 21:24 UTC by Eyal Rozenberg
Modified: 2023-01-26 09:53 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

Document exhibiting the bug (1.57 MB, application/msword)
2022-08-09 07:13 UTC, Eyal Rozenberg

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2022-02-26 21:24:24 UTC
I have this large .doc file which I imported into LO Writer (unfortunately I can't share it here). When importing this file, the import filter generates 40 (!) different numbering styles; however, when I view the "applied styles", I only see 14 or 15 of these.

Now, if it were some named style which was stored in the MS-Word file and imported, then - fine, I can live with that. But these are styles named: WW8Num01, WW8Num02, etc - so, these must be generated based on anonymous styles or manually-applied formatting.

I claim that no such style should be generated unless some text in the imported document actually uses it. Alternatively, if a style is generated in a preliminary step, and it is then determined the style is not in use - it should be deleted.

As for the minimum affected version - I remember this since forever, but I haven't actually checked. It's probably inherited from Open Office.

Actual Results:

Expected Results:

Reproducible: Always

User Profile Reset: No

Additional Info:
Comment 1 raal 2022-07-30 22:58:31 UTC

Thank you for filing the bug. Please send us a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO', so please do change it back to 'UNCONFIRMED' once you have attached a document.
(Please note that the attachment will be public, remove any sensitive information before attaching it.)
How can I eliminate confidential data from a sample document?
Thank you
Comment 2 Eyal Rozenberg 2022-08-09 07:13:24 UTC
Created attachment 181658 [details]
Document exhibiting the bug

Ok, you asked for it... it's a large file though.
Comment 3 QA Administrators 2022-08-10 03:35:06 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2023-01-26 09:53:59 UTC
Confirmed. Adding some character style related reports to See Also.

Arch Linux 64-bit, X11
Version: (X86_64) / LibreOffice Community
Build ID: bfb8706466b52298def33d47d31b6efffc3ed531
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 26 January 2023