Bug 128195 - FILEOPEN: DOCX: last line in header doesn't use spacing after
Summary: FILEOPEN: DOCX: last line in header doesn't use spacing after
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Header-Footer docx-aggressive-competitors
  Show dependency treegraph
 
Reported: 2019-10-17 09:31 UTC by Xisco Faulí
Modified: 2020-03-27 12:34 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
sample file (14.53 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-10-17 09:31 UTC, Xisco Faulí
Details
comparison MSO 2010 and LibreOffice 6.4 Master (13.39 KB, image/png)
2019-10-17 09:32 UTC, Xisco Faulí
Details
Sample in DOC format (26.50 KB, application/msword)
2019-10-18 00:16 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xisco Faulí 2019-10-17 09:31:44 UTC
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
Comment 1 Xisco Faulí 2019-10-17 09:32:38 UTC
Created attachment 155058 [details]
comparison MSO 2010 and LibreOffice 6.4 Master
Comment 2 Aron Budea 2019-10-17 23:20:10 UTC
Confirmed with LO 6.4.0.0.alpha0+ (bb6bcabda53dbd64dda43f09fab9f4ad6f34eba6) / Windows.
Comment 3 Aron Budea 2019-10-18 00:16:13 UTC
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.
Comment 4 NISZ LibreOffice Team 2019-12-16 08:59:45 UTC
Bug #127736 is about this too, plus Line Spacing is not applied either (unlike in Word).
Comment 5 Justin L 2020-03-27 12:34:08 UTC
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...