Bug 134095 - FILEOPEN DOCX and DOC: number format "- 1 -" is not a built-in page numbering format in LO
Summary: FILEOPEN DOCX and DOC: number format "- 1 -" is not a built-in page numbering...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: lowest minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc, filter:docx
Depends on:
Blocks: Fields-Page-Number DOCX-Fields
  Show dependency treegraph
 
Reported: 2020-06-18 08:38 UTC by NSO LibreOffice Team
Modified: 2025-09-19 10:47 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
About page format compatibility issues (17.96 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-06-20 13:29 UTC, NSO LibreOffice Team
Details
Sample DOCX in MSO and LO (73.12 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-06-23 11:42 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NSO LibreOffice Team 2020-06-18 08:38:34 UTC
Description:
I'm using LibreOffice 6.4.4.2 in the China locale and finding a very strange bug. I'll try to be as clear as possible in the description.
New word document on Microsoft Office,then Insert the page number in the header or footer, right-click to set the page number format, and select "- 1 -" format,and Save as docx document and close,and Open the document with LibreOffice 6.4.4.2, and it is found that "-" disappears, and the page number has gray shadow

Steps to Reproduce:
1.New word document on Microsoft Office
2.Insert the page number in the header or footer, right-click to set the page number format, and select "- 1 -" format
3.Save as docx document and close
4.Open the document with LibreOffice 6.4.4.2, and it is found that "-" disappears, and the page number has gray shadow

Actual Results:
Open the document with LibreOffice 6.4.4.2, and it is found that "-" disappears, and the page number has gray shadow

Expected Results:
Keep page number format unchanged on LibreOffice 6.4.4.2


Reproducible: Always


User Profile Reset: No



Additional Info:
No other information found that may be relevant
Comment 1 Dieter 2020-06-20 04:59:36 UTC Comment hidden (obsolete)
Comment 2 NSO LibreOffice Team 2020-06-20 13:29:23 UTC
Created attachment 162228 [details]
About page format compatibility issues
Comment 3 Dieter 2020-06-22 13:58:22 UTC
(In reply to NSO LibreOffice Team from comment #2)
> Created attachment 162228 [details]
> About page format compatibility issues

I confirm, that dashes get lost in

Version: 7.0.0.0.beta2 (x64)
Build ID: 1c213561a365b5666167321de68c9977500c9612
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

The grey shadow only marks, that there is a page number field. Print or PDF export should be without shadow.

It's not possible to create such a page number field in writer. Don't know, if this is another bug or the solution for this one.
Comment 4 NSO LibreOffice Team 2020-06-23 02:39:08 UTC
Thank you for confirming the problem. I tried to use 7.0.0.beta2 (x64) again and found that there is still a problem.
Comment 5 Timur 2020-06-23 11:42:52 UTC
Created attachment 162346 [details]
Sample DOCX in MSO and LO
Comment 6 NSO LibreOffice Team 2020-06-24 05:59:05 UTC
(In reply to Timur from comment #5)
> Created attachment 162346 [details]
> Sample DOCX in MSO and LO


Thanks Timur!
You better describe the problem.
Comment 7 Dieter 2022-06-20 06:27:21 UTC
Still present in

Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL

Tested with attachment 162346 [details].
But not related to page header. In Word I've copied header, pasted it into text area, saved the document as docx and opened it in Writer.
Comment 8 QA Administrators 2024-06-20 03:17:39 UTC Comment hidden (obsolete)
Comment 9 Dieter 2025-03-04 09:38:57 UTC
Bug still present in

Version: 25.2.0.3 (X86_64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 12; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded


Steps:
1. Open attachment 162228 [details] and compare header with images in that document

Actual result
Dashes get lost

Expected result
- 1 -
Comment 10 Justin L 2025-09-19 10:47:05 UTC
This looks like a pre-defined numbering format in MS Word that we don't have available in LibreOffice. (It must be very rarely used if we haven't added it yet.)

So, just like you can chose between formatting like 1 and A and 1st and First..., the option chosen here is - 1 - 

This looks like a very arbitrary, hardcoded "numbering format". I don't see any value in adding this to LO. (It appropriately is mapped to a simple 1)

If the user wants some "before" and "after" text around the page number, they can just type it themselves. It makes no sense to define an uncustomizable format choice like this.