Description: usage of compatSetting elements allowHyphenationAtTrackBottom and useWord2013TrackBottomHyphenation changes the layout of the DOCX documents, shifting the last hyphenated line of pages or columns to the next page or column. Steps to Reproduce: 1. Open the attached test document. Actual Results: Only 2 pages. Expected Results: Typeset in 3 pages, like MSO does. Reproducible: Always User Profile Reset: No Additional Info: Documentation: https://learn.microsoft.com/en-us/openspecs/office_standards/ms-docx/e0c0663e-a5e7-4a44-8360-b0b5df1f43e6 https://learn.microsoft.com/en-us/openspecs/office_standards/ms-docx/e6cd53b7-89ac-4c64-a6b2-cd1df8b08228
Created attachment 193486 [details] 3-page document (useWord2013TrackBottomHyphenation = "1" and allowHyphenationAtTrackBottom = "0")
Created attachment 193487 [details] 2-page document (allowHyphenationAtTrackBottom="1")
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/c8ee0e8f581b8a6e41b1a6b8aa4d40b442c1d463 tdf160518 DOCX: import hyphenation-keep to fix layout It will be available in 24.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.