Bug 163621 - FILEOPEN DOCX Table last row not laid out on next page like in Word
Summary: FILEOPEN DOCX Table last row not laid out on next page like in Word
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-Tables
  Show dependency treegraph
 
Reported: 2024-10-25 20:00 UTC by Gabor Kelemen (allotropia)
Modified: 2025-03-18 17:23 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2016 (21.62 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-10-25 20:00 UTC, Gabor Kelemen (allotropia)
Details
The document in Word and Writer (59.82 KB, image/png)
2024-10-25 20:01 UTC, Gabor Kelemen (allotropia)
Details
The same example file without page break (18.44 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-10-25 20:04 UTC, Gabor Kelemen (allotropia)
Details
The page break less document in Word and Writer - now both look the same (89.31 KB, image/png)
2024-10-25 20:05 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2024-10-25 20:00:36 UTC
Created attachment 197240 [details]
Example file from Word 2016

Attached example file has a table at the bottom of the first page.
In Word, the last line of the table is rendered at the top of the second page, but in Writer it is still at the bottom of the first.

Interesting behavior in Word: the table is followed by a paragraph with a page break. If the page break is removed, the table is rendered on the first page, like in Writer.

1. Open attached file
-> The "Lorem15" table row is at the top of the second page in Writer, and not at the bottom of the first like in Word

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: dd41459378bca78a18f32e61bfac77aa48fabb8d
CPU threads: 14; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: default

and the same back to 3.3
Comment 1 Gabor Kelemen (allotropia) 2024-10-25 20:01:11 UTC
Created attachment 197241 [details]
The document in Word and Writer
Comment 2 Gabor Kelemen (allotropia) 2024-10-25 20:04:23 UTC
Created attachment 197242 [details]
The same example file without page break

Removing the page break makes the table row rendered at the bottom of the first page in Word, and the next two paragraphs as well, so the document is now 1 page long instead of 3.
Comment 3 Gabor Kelemen (allotropia) 2024-10-25 20:05:01 UTC
Created attachment 197243 [details]
The page break less document in Word and Writer - now both look the same
Comment 4 Gabor Kelemen (allotropia) 2024-10-25 20:18:23 UTC
One more detail about the page break: it is a section break, which has some customized 3 cm margins (all of top, bottom, left, right).
If I reduce the top margin of the section break to 2.5 cm, the Lorem15 row is rendered at the bottom of the first page in Word 2016 as well.
Comment 5 Buovjaga 2025-03-18 17:23:29 UTC
Confirmed.

Arch Linux 64-bit
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0c5953f1adb36ba3c5658050e6fb4b086839f210
CPU threads: 8; OS: Linux 6.13; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 18 March 2025