Bug 167202 - FILEOPEN DOCX Footnote lines are numbered in Writer, unlike in Word
Summary: FILEOPEN DOCX Footnote lines are numbered in Writer, unlike in Word
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Bayram Çiçek
URL:
Whiteboard: target:26.2.0 inReleaseNotes:26.2
Keywords:
Depends on:
Blocks: DOCX-Header-Footer
  Show dependency treegraph
 
Reported: 2025-06-25 12:09 UTC by Gabor Kelemen (Collabora)
Modified: 2025-10-02 14:33 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2016 (14.71 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-06-25 12:09 UTC, Gabor Kelemen (Collabora)
Details
The example file in Word and Writer master (86.90 KB, image/png)
2025-06-25 12:09 UTC, Gabor Kelemen (Collabora)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (Collabora) 2025-06-25 12:09:16 UTC
Created attachment 201464 [details]
Example file from Word 2016

Attached example file from Word shows the interaction of the "Suppress line numbers" property in footnotes vs document body: 
When a paragraph style such as Footnote Text is used in a footnote, the lines are not numbered if line numbering is enabled for the document. This is weird as the style has the "Suppress line numbers" property disabled, meaning lines should be numbered. In Writer, they are indeed numbered.

When the same style is used in the document body, the lines are numbered in both Word and Writer.

1. Open a new Writer document
2. add some text, then a footnote
3. Apply the Footnote text paragraph style on the document body text (the attachment has this on the last two lines, 9-10).
4. On the Layout ribbon, go to Line Numbering and check Continuous
-> In the footnote there is no line numbering, in the document body there is line numbering
5. Save the file and open it in Writer
-> In the footnote there is line numbering

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6faa7e6f7bae3e6a613b4f4b7cee4a9c6d2b7aae
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded

and in 3.3 already. 

Writer in a new document solves this by disabling the "Include this paragraph in line numbering" checkbox on the Footnote styles "Outline & numbering" tab.
On the other hand, this works consistently in the footnote and document body; unlike in Word. So changing the handling of the "Include this paragraph in line numbering" property at import time is not going to be a good solution.

To properly solve this, we probably need to implement a compatibility option.
Comment 1 Gabor Kelemen (Collabora) 2025-06-25 12:09:36 UTC
Created attachment 201465 [details]
The example file in Word and Writer master
Comment 2 Bayram Çiçek 2025-09-29 07:46:59 UTC
https://gerrit.libreoffice.org/c/core/+/191493
Comment 3 Commit Notification 2025-09-30 08:55:53 UTC
Bayram Çiçek committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/4afbcee5f13f63a49bbd957664daf7e37ea7472e

tdf#167202: sw: do not show line numbering in footnote

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Jazevedo 2025-10-01 23:55:09 UTC
Tested ok on: 

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 4afbcee5f13f63a49bbd957664daf7e37ea7472e
CPU threads: 20; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded