Bug 137111 - Header has fixed minimum spacing on DOCX import
Summary: Header has fixed minimum spacing on DOCX import
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Header-Footer
  Show dependency treegraph
 
Reported: 2020-09-29 06:42 UTC by Telesto
Modified: 2023-06-26 03:12 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (8.05 KB, application/vnd.oasis.opendocument.text)
2020-09-29 06:42 UTC, Telesto
Details
The original document and its docx version in LO 7.2alpha (62.61 KB, image/png)
2020-12-07 13:42 UTC, NISZ LibreOffice Team
Details
The docx-version of the original file saved with current master (4.85 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-06-11 09:26 UTC, NISZ LibreOffice Team
Details
The docx version of the file side by side in Word and Writer (96.37 KB, image/png)
2021-06-11 09:43 UTC, NISZ LibreOffice Team
Details
A similar example file from Word (12.08 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-06-11 09:54 UTC, NISZ LibreOffice Team
Details
The Word-made file in Word and Writer (87.04 KB, image/png)
2021-06-11 09:58 UTC, NISZ LibreOffice Team
Details
The Word-made file saved as docx then reopened in bot Word and Writer (103.68 KB, image/png)
2021-06-11 10:11 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-09-29 06:42:06 UTC
Description:
Header has fixed minimum spacing on DOCX import

Steps to Reproduce:
1. Open the attached file
2. Save as DOCX
3. File reload
4. Delete a few enter.. notice the header not shrinking
4, Format -> page style -> header tab

Actual Results:
Spacing is set to 2,84 and use dynamic spacing checked

Expected Results:
Same or similar behaviour to odt?


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.0.2
Build ID: c01aa64b6c3d89ebe5fe69c28c7adb24eb85249c
CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 1 Telesto 2020-09-29 06:42:24 UTC
Created attachment 165932 [details]
Example file
Comment 2 Telesto 2020-09-29 07:09:25 UTC
Also in
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL
Comment 3 Telesto 2020-09-29 07:11:17 UTC
also in
Versie 4.0.0.3 (Bouw-id: 7545bee9c2a0782548772a21bc84a9dcc583b89)
Comment 4 Telesto 2020-09-29 07:21:16 UTC
@Justin
The behavior of settings for the page header settings dialog pretty different for DOCX compared to ODT. Same holds true for DOC. 

There is a little difference for DOCX between 3.0 and 4.0 LibreOffice export. But certainly since 4.0 DOC and DOCX behave in the same (broken)way
Comment 5 NISZ LibreOffice Team 2020-12-07 13:42:56 UTC
Created attachment 167903 [details]
The original document and its docx version in LO 7.2alpha

Confirming the spacing going from 0.5 cm to 2.84 and Use dynamic spacing gets enabled in:

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 561e5559bb68242c7f785f0ca3bee3eb12b58963
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL
Comment 6 NISZ LibreOffice Team 2021-06-11 09:26:21 UTC
Created attachment 172800 [details]
The docx-version of the original file saved with current master

Made in:

Version: 7.2.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 239b4bb27fd8db26e8416045b3015688a8b1b0ae
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL

This is actually an export problem as this file shows the same behavior in Word too.
Comment 7 NISZ LibreOffice Team 2021-06-11 09:43:56 UTC
Created attachment 172801 [details]
The docx version of the file side by side in Word and Writer

On saving the top margin gets increased from 2 cm to 4.93 cm and the header has 2 cm distance from the edge of the sheet.

This is read back by Writer as 2 cm top margin + 2.84 cm header spacing + 0.10 cm header height.

On the screenshot I already deleted two empty paragraphs in both programs to illustrate that their behavior matches in this situation.
Comment 8 NISZ LibreOffice Team 2021-06-11 09:54:02 UTC
Created attachment 172802 [details]
A similar example file from Word
Comment 9 NISZ LibreOffice Team 2021-06-11 09:58:13 UTC
Created attachment 172803 [details]
The Word-made file in Word and Writer

It's interesting that a Word-made file is imported correctly from this point of view: deleting the paragraphs shrinks the headers vertical size.
Comment 10 NISZ LibreOffice Team 2021-06-11 10:11:54 UTC
Created attachment 172804 [details]
The Word-made file saved as docx then reopened in bot Word and Writer

This also seems to work quite decently.
Deleting paragraphs still reduces the vertical size of the header.

Only the ODT->DOCX direction is incorrect.
Comment 11 NISZ LibreOffice Team 2021-06-25 09:36:47 UTC
I think this is very similar to bug 131531, maybe a duplicate.
Comment 12 QA Administrators 2023-06-26 03:12:18 UTC
Dear Telesto,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug