Bug 159085 - soft hyphen triggers bad smart justify
Summary: soft hyphen triggers bad smart justify
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.0 beta1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:24.2.0.2
Keywords:
Depends on:
Blocks: DOCX-Paragraph DOCX-compatibilityMode-15
  Show dependency treegraph
 
Reported: 2024-01-09 12:26 UTC by László Németh
Modified: 2024-01-10 12:27 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
test document (7.47 KB, application/vnd.oasis.opendocument.text-flat-xml)
2024-01-10 12:27 UTC, László Németh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description László Németh 2024-01-09 12:26:13 UTC
Description:
Putting a soft hyphen in a word can result bad (i.e. too much) shrinking, resulting that the word fits in the previous line completely, instead of breaking the word at the soft hyphen.  

Steps to Reproduce:
Open the test document.

Actual Results:
The word "cursus" fits in the first (and third) lines.
But not after removing the soft hyphen.

Expected Results:
Hyphenate "cursus" at the soft hyphen.



Reproducible: Always


User Profile Reset: No

Additional Info:
See Bug 119908
Comment 1 László Németh 2024-01-09 19:07:13 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

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

tdf#195085 sw smart justify: fix bad shrinking at soft hyphen

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.

Change has been successfully cherry-picked as
Comment 2 Commit Notification 2024-01-10 12:11:57 UTC
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/6bd230862605760bd4357e6e4bba2c91dcbe5438

tdf#159085 sw smart justify: fix bad shrinking at soft hyphen

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.
Comment 3 László Németh 2024-01-10 12:27:42 UTC
Created attachment 191843 [details]
test document