Created attachment 155057 [details] sample file Steps to reproduce: 1. Open the attached file -> Last line in header doesn't use spacing after, thus, there is no separation between the header and the body of the document. See attached image Reproduced in Version: 6.4.0.0.alpha1+ Build ID: 01d28b0b85f99590c0581e4bbf636bc9281e0571 CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US Calc: threaded Version: 5.2.0.0.alpha1+ Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e CPU Threads: 4; OS Version: Linux 4.15; UI Render: default; Locale: ca-ES (ca_ES.UTF-8 Version: 4.3.0.0.alpha1+ Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a) LibreOffice 3.3.0 OOO330m19 (Build:6) tag libreoffice-3.3.0.4
Created attachment 155058 [details] comparison MSO 2010 and LibreOffice 6.4 Master
Confirmed with LO 6.4.0.0.alpha0+ (bb6bcabda53dbd64dda43f09fab9f4ad6f34eba6) / Windows.
Created attachment 155101 [details] Sample in DOC format Same issue in DOC format. I didn't want to create a separate bug report right away, that can be done whenever, eg. if the DOCX part is resolved separately.
Bug #127736 is about this too, plus Line Spacing is not applied either (unlike in Word).
This looks simply like a layout difference between the two programs. I didn't see any compat settings related to this. (The closest is automargin - but that is only handled on import). So likely if this is worth fixing, it would require a new compat layout setting. It seems to be related to EatSpacing() - which only eats lower spacing and not upper spacing. Another option would be to disable dynamic header sizing in this situation - although that might have other implications...
*** Bug 56372 has been marked as a duplicate of this bug. ***
Created attachment 161005 [details] Word PDF export Add PDF exported from Word PS: When reporting layout differences to Word, it is generally helpful to attach a PDF produced by Word to the bug.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/9b5805d1ef2b9e9c4e8f389c069807bf4489ea95 tdf#128195 Keep spacing below last paragraph in header (docx) It will be available in 7.1.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.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "libreoffice-7-0": https://git.libreoffice.org/core/commit/fbd62e247fd588a595e44cec787fc8944f158777 tdf#128195 Keep spacing below last paragraph in header (docx) It will be available in 7.0.0.1. 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.
Nice! Verified in Version: 7.1.0.0.alpha0+ Build ID: 11d21b3c1f7754b5d13ae9ea88da562ec74366ff CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded @Samuel, thanks for fixing this issue!!
*** Bug 127736 has been marked as a duplicate of this bug. ***
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "libreoffice-6-4": https://git.libreoffice.org/core/commit/21e319ffba1e9357914e343bda793f65b4129155 tdf#128195 Keep spacing below last paragraph in header (docx) It will be available in 6.4.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.