Bug 170090 - DOCX export/saveas creates persistent border under endnotes and breaks line numbering, while ODT works correctly
Summary: DOCX export/saveas creates persistent border under endnotes and breaks line n...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.2.7.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-22 20:25 UTC by Rafet IRMAK
Modified: 2026-01-06 08:13 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Repro testcase files (ODT + DOCX + screenshots) (21.08 KB, application/x-zip-compressed)
2026-01-06 08:13 UTC, Rafet IRMAK
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafet IRMAK 2025-12-22 20:25:19 UTC
Description:
When working with endnotes in LibreOffice Writer, formatting issues occur only after saving the document in DOCX format.
The same document behaves correctly when saved and reopened in ODT format.

Issue 1 — Persistent border begining od endnotes  page(DOCX only)

After saving a document as DOCX, a horizontal border/line appears under the endnotes section.

This border:

Is  a footnote/endnote separator

Appears to be related to page style / footer / shadow or border handling

Even if the border is manually removed (Page Style → Borders → Shadow off, Borders none) and the document is saved again as DOCX:

The border reappears after reopening

The same document saved as ODT does NOT show this issue

This suggests a DOCX export/import regression or incorrect mapping of page style borders/shadows related to endnotes.

Issue 2 — Line numbering breaks when endnotes are present (DOCX, ODT)

When line numbering is enabled:

line numbering skips numbers on pages containing endnotes


This issue:

Occurs in DOCX

Does not occur in ODT



Steps to Reproduce:
Create a new Writer document

Add body text

Insert endnotes

Enable line numbering

Save the document as DOCX

Close LibreOffice

Reopen the DOCX file

Actual Results:
A horizontal border appears under the endnotes

Border cannot be permanently removed

Line numbering is broken on pages containing endnotes

Expected Results:
No border should appear under endnotes unless explicitly defined

Line numbering should remain consistent and identical to ODT behavior

DOCX and ODT should render endnotes consistently


Reproducible: Always


User Profile Reset: No

Additional Info:
The issue does not occur in ODT

The issue persists across save–reopen cycles in DOCX

Likely related to:

DOCX export of page styles

Endnote section formatting

Border / shadow serialization

Line numbering interaction with endnotes
Comment 1 Rafet IRMAK 2026-01-06 08:13:06 UTC
Created attachment 204937 [details]
Repro testcase files (ODT + DOCX + screenshots)

Attached a ZIP containing:

bug170090_repro_v1.odt (ODT behaves correctly)

bug170090_repro_v1.docx (same content saved as DOCX; issues appear after reopen)

Screenshots showing (1) persistent line/border under endnotes and (2) line numbering skipping on pages with endnotes.
Comment 2 Rafet IRMAK 2026-01-06 08:13:56 UTC
Hello,

I have prepared reproducible test files and attached them as a ZIP (bug170090_repro_v1.zip). The ZIP contains:

an ODT file (works correctly),

a DOCX file saved from the same content (issues appear after reopen),

and screenshots showing (1) the persistent horizontal line/border under endnotes and (2) line numbering skipping on pages containing endnotes.

Environment: LibreOffice Writer 25.2.7.2 on Windows.

Steps:

Open the ODT

Save As DOCX (or open the DOCX)

Close LibreOffice

Reopen the DOCX

Actual (DOCX): border/line reappears under endnotes; line numbering skips.
Expected: no border unless defined; continuous line numbering (matching ODT).

Thank you.