Bug 165117 - FILEOPEN DOCX: empty line always added above table in header
Summary: FILEOPEN DOCX: empty line always added above table in header
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.6.3 release
Hardware: All All
: medium normal
Assignee: Justin L
URL:
Whiteboard: target:25.8.0 target:25.2.2 target:24...
Keywords: bibisected, bisected, filter:docx, regression
Depends on:
Blocks: DOCX-Header-Footer
  Show dependency treegraph
 
Reported: 2025-02-07 23:45 UTC by Justin L
Modified: 2025-02-12 15:21 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
forum-mso-en3-9468.docx: example document (173.37 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-02-07 23:45 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2025-02-07 23:45:22 UTC
Created attachment 199058 [details]
forum-mso-en3-9468.docx: example document

A header (that starts with a table) now has an extra CR added to the top each round-trip.

Possibly also related to bug 164876.

This started with 24.8 commit (backported to 7.6.6)
commit 86ad08f9d25110e91e92a0badf6de75e785b3644
Author: Michael Stahl on Thu Feb 1 12:53:07 2024 +0100
    writerfilter: fix missing paragraph break on tdf136445-1.rtf

1.) Open forum-mso-en3-9468.docx

Noticed that there is an empty paragraph above the table in the header. It shouldn't be there. And an additional one is added each round-trip.

Found by Collabora's mso-test
Comment 1 Commit Notification 2025-02-10 14:14:25 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/44eda1f72b4d67b9627155741067d3e57a1f9747

tdf#164876 tdf#165117 writerfilter: no dummy paragraphs in header

It will be available in 25.8.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 2 Commit Notification 2025-02-10 15:57:58 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/core/commit/e2a49e43bf7258146202a4a177c3a91d24801c12

tdf#164876 tdf#165117 writerfilter: no dummy paragraphs in header

It will be available in 25.2.2.

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 3 Commit Notification 2025-02-10 19:56:34 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/663e8084233590da7eeeeffd5edce6a797eb05af

tdf#164876 tdf#165117 writerfilter: no dummy paragraphs in header

It will be available in 24.8.6.

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.