Bug 140218 - Unexpected additional page break on DOCX export
Summary: Unexpected additional page break on DOCX export
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-06 19:47 UTC by Telesto
Modified: 2021-02-07 15:57 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (166.37 KB, application/vnd.oasis.opendocument.text)
2021-02-06 19:47 UTC, Telesto
Details
Screenshoot for both with 711 (192.85 KB, image/png)
2021-02-07 10:20 UTC, m_a_riosv
Details
Screenshoot for both with 647 (162.38 KB, image/png)
2021-02-07 10:21 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-02-06 19:47:09 UTC
Description:
Unexpected additional page break on DOCX export

Steps to Reproduce:
1. Open the attached file
2. Save as DOCX (or DOCX)
3. Notice page break between page 1 and 2

Actual Results:
Page break between 1/2

Expected Results:
Not present in source ODT


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
7.2

3.5.7.2

but not in
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 1 Telesto 2021-02-06 19:47:22 UTC
Created attachment 169538 [details]
Example file
Comment 2 Telesto 2021-02-06 19:52:32 UTC
@Justin,
The whole ODT <-> DOCX conversion is beyond me. As there are plenty of cases where page breaks are introduced not present in the source for one reason or another.

So maybe this is proper, but 3.0 doesn't do it. And I'm not seeing the point. [and obviously dislike page breaks all over the place]
Comment 3 Aron Budea 2021-02-07 00:28:06 UTC
The page break is inserted because there is a change in page styles used on the first page and later, and that requires a page break. The different page style is because of the font size difference in the header/footer on page 1 vs the rest (unifying font sizes and exporting afterwards gets rid of the multiple styles). I believe this is because Word and Writer calculates margin spacing differently... (bug 33304) but I might be wrong, and this is unrelated.
Comment 4 Aron Budea 2021-02-07 00:30:14 UTC
Btw, the exported DOCX opens modified in Writer, which is certainly a bug.
Comment 5 m_a_riosv 2021-02-07 10:20:19 UTC
Created attachment 169545 [details]
Screenshoot for both with 711

Maybe I can't see the difference, but seems to me the same with both file types with
Version: 7.1.1.0.0+ (x64) / LibreOffice Community
Build ID: b6f74722173b0384efa6798799b83807e9f0d814
CPU threads: 4; OS: Windows 10.0 Build 21296; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL
Comment 6 m_a_riosv 2021-02-07 10:21:26 UTC
Created attachment 169546 [details]
Screenshoot for both with 647

Neither with
Version: 6.4.7.2 (x64)
Build ID: 639b8ac485750d5696d7590a72ef1b496725cfb5
CPU threads: 4; OS: Windows 10.0 Build 21296; UI render: default; VCL: win; 
Locale: es-ES (es_ES); UI-Language: en-US Calc: CL
Comment 7 Aron Budea 2021-02-07 15:57:07 UTC
(In reply to m.a.riosv from comment #5)
> Maybe I can't see the difference, but seems to me the same with both file
> types with
There's a page break between page 1 and 2 in DOCX, which isn't in the ODT, and also if you check the page style on page 1 and page 2, they're different in DOCX, and the same in ODT.