Bug 165095 - Untimely word break
Summary: Untimely word break
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Word-Line-Break
  Show dependency treegraph
 
Reported: 2025-02-07 09:05 UTC by azinwxon
Modified: 2025-04-05 05:03 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Contains the paragraph (the first) whose last line contains the break. (37.75 KB, Application/odt)
2025-02-07 09:11 UTC, azinwxon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description azinwxon 2025-02-07 09:05:35 UTC
Description:
In a justified paragraph, it ends with the image of a LaTeX formula that returns the symbol of an SI unit, namely the letter W corresponding to the watt, and this image is inserted between two parentheses, which therefore gives at the end of the last line of said paragraph: (W).
If I add a full stop after the closing parenthesis, as it should, LibreOffice returns it and the full stop to the next line.

Steps to Reproduce:
1.Create a paragraph of several lines, the last of which ends with a word in front of a closing parenthesis followed by a full stop.
2.
3.

Actual Results:
The closing parenthesis and the full stop are returned alone to the next line (untimely break of the whole).

Expected Results:
Justify the lines of the paragraph to avoid this break.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.8.4.2 (X86_64) / LibreOffice Community
Build ID: bb3cfa12c7b1bf994ecc5649a80400d06cd71002
CPU threads: 28; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 1 azinwxon 2025-02-07 09:11:45 UTC
Created attachment 199039 [details]
Contains the paragraph (the first) whose last line contains the break.
Comment 2 meagan.eggert 2025-04-03 21:46:08 UTC
Version 25.2.1.2
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 8; OS: Windows 11 x86_64
UI render: Skia/Raster; VCL: win
Locale: en-US; UI: en-US
Calc: threaded

Bug confirmed. Justified behavior works as expected (element stays attached to the parentheses) when the element before the closing parenthesis is a word or character, but when the LaTeX formula is inserted, it breaks before the parenthesis.