Description: The fix for Bug 119908 is not fully interoperable: sometimes shrinks spaces more, than needed for interoperability. Steps to Reproduce: 1. Open (last) test file of Bug 158333. 2. Check line 11 of paragraph 4. Actual Results: It "venenatis, quis commodo dolor posuere. Curabitur dignissim sapien quis cursus", i.e. it contains the extra word "cursus". Expected Results: Only "venenatis, quis commodo dolor posuere. Curabitur dignissim sapien quis". Reproducible: Always User Profile Reset: No Additional Info: See Bug 119908.
László Németh committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/36bfc86e27fa03ee16f87819549ab126c5a68cac tdf#119908 tdf#158776 sw smart justify: shrink only spaces 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.
Created attachment 191516 [details] MSO PDF export
Created attachment 191517 [details] Writer PDF export after the fix
Created attachment 191520 [details] composite screenshots of before (black) and after (red) right composite screenshot shows fixing the last line break difference using space shrinking instead of line shrinking
FTR: https://www.unicode.org/reports/tr14/ is a Unicode Standard Annex that describes line breaking algorithm; in particular, it discusses differences of space (SP) and other whitespace characters ("Breaking Spaces" and "Tabs" under BA) wrt shrinking.
László Németh committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/8d247e3ad47e0b828437abb019e1573dbb1c05b1 tdf#119908 tdf#158776 sw smart justify: shrink only spaces It will be available in 24.2.0.2. 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.