Bug 141561

Summary: DOCX: FILESAVE: Writer adds extra page breaks between pages with tables
Product: LibreOffice Reporter: Roman Kuznetsov <79045_79045>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: jluth, libreoffice
Priority: medium Keywords: filter:docx
Version: 7.2.0.0.alpha0+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108771    
Attachments: ODT example

Description Roman Kuznetsov 2021-04-08 11:25:16 UTC
Description:
DOCX: FILESAVE: Writer adds extra page breaks between pages with tables

Steps to Reproduce:
1. Open ODT file from attach
2. Save it to DOCX format
3. Open DOCX in MS Word => there are extra empty pages between pages with tables

But you can't see it in Writer! Only in MS Word

Actual Results:
Writer adds extra page breaks between pages with tables

Expected Results:
Writer adds extra page breaks between pages with tables in DOCX format


Reproducible: Always


User Profile Reset: No



Additional Info:
Writer doesn't add extra page breaks between pages with tables in DOCX format
Comment 1 Roman Kuznetsov 2021-04-08 11:25:47 UTC
Created attachment 171031 [details]
ODT example
Comment 2 NISZ LibreOffice Team 2021-04-12 08:19:24 UTC
This is an interesting layout difference.

The tables are in the odt followed by an empty paragraph with 14 pt font size and page breaks, these are exported to docx correctly.

Now the difference seems to be in the rendering of the empty paragraphs:
- in Writer they are rendered on the same page as the table until they are less than 26 pt in size.
- in Word they are rendered on the same page as the table until they are less than 12 pt in size. Manually changing the empty paragraphs font size to 11 pt in Word restores the original layout.

Happens with Word 19 and:

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 7a0e0a84a02f505200331c19b28d45e898cd5a12
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL