https://bugs.documentfoundation.org/show_bug.cgi?id=170090

            Bug ID: 170090
           Summary: DOCX export/saveas creates persistent border under
                    endnotes and breaks line numbering, while ODT works
                    correctly
           Product: LibreOffice
           Version: 25.2.7.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to