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
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.
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.