Bug 166871 - Text moves to the next page, keeping large empty spaces, in a document with many small paragraphs in multiple columns, having document statistics
Summary: Text moves to the next page, keeping large empty spaces, in a document with m...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:25.8.0 target:25.2.5
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-05 20:16 UTC by Mike Kaganski
Modified: 2025-07-11 01:24 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A sample with hundreds of paragraphs per page (13.46 KB, application/vnd.oasis.opendocument.text)
2025-06-05 20:16 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2025-06-05 20:16:05 UTC
Created attachment 201112 [details]
A sample with hundreds of paragraphs per page

Ref: https://ask.libreoffice.org/t/libreoffice-file-losing-sections-of-text/122835

Open the attachment. It has many short paragraphs, organized in 6 columns, so the resulting number of paragraphs per page is more than 200. The document has statistics about the number of pages, paragraphs, etc. in its meta.

Opening it, some columns are not filled. Opening and closing print preview normalizes the layout.

In debug build, there is "Looping Louie" output when opening the document, indicating loop control triggering forced layout.
Comment 1 Commit Notification 2025-06-07 09:48:04 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/b6bcc7ac278e0db22df02707789730ec123bf934

tdf#166871: drop mnMaxParaPerPage hack

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Commit Notification 2025-06-10 06:51:21 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/core/commit/9ec73c650091e03e84eba8bc6ed90ebccc68d0bb

tdf#166871: drop mnMaxParaPerPage hack

It will be available in 25.2.5.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.