Bug 160900 - Inconsistency in Retaining Automatic Line Break Setting in LibreOffice Calc (xlsx Format)
Summary: Inconsistency in Retaining Automatic Line Break Setting in LibreOffice Calc (...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.2.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:xls, filter:xlsx, regression
Depends on:
Blocks:
 
Reported: 2024-05-02 06:54 UTC by jun meguro
Modified: 2024-05-06 23:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
sample_of_wrap_problem (6.14 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2024-05-02 06:54 UTC, jun meguro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jun meguro 2024-05-02 06:54:22 UTC
Created attachment 193934 [details]
sample_of_wrap_problem

In cells containing text created by formulas in an xlsx format file, the formatting for automatic line breaks is not retained.

1,Open LibreOffice Calc.
2,Open a sample document.
3,Open the format dialog for cell A5 and enable automatic line break.
4,Save the file (in xlsx format).
5,Close the file.
6,Reopen the file.

Expected behavior:
The automatic line break setting for the cell should be retained.

Actual behavior:
The automatic line break setting for the cell is not retained.

This behavior occurred in LibreOffice 24.0.0 and 24.2.2. 
However, it did not occur in LibreOffice 7.6.4.
Comment 1 ady 2024-05-02 09:05:26 UTC
(In reply to jun meguro from comment #0)

> 3,Open the format dialog for cell A5 and enable automatic line break.

Do you mean "Format Cells > Alignment > Wrap text automatically"? Or maybe you meant "Justify alignment"? Or some other setting?

Please clarify the exact step/setting you are referring to.
Comment 2 jun meguro 2024-05-02 11:24:10 UTC
I apologize for the unclear description.
The issue occurs with the formatting set through the following menu path you provided:

>>Do you mean "Format Cells > Alignment > Wrap text automatically"?
Comment 3 ady 2024-05-02 14:29:59 UTC
(In reply to jun meguro from comment #2)
> The issue occurs with the formatting set through the following menu path you
> provided:
> 
> >> "Format Cells > Alignment > Wrap text automatically"

I can reproduce this problem in LO 24.2.0, but not in a recent LO Dev 24.8 alpha.

Would you please test with LO 24.2.3 and report back?
Comment 4 jun meguro 2024-05-06 11:36:20 UTC
I was able to reproduce it in version 24.2.4.

Version: 24.2.4.0.0+ (X86_64) / LibreOffice Community
Build ID: ee9f7d31348e917eb8ba5b007a6679e01ecdb37f
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
Calc: CL threaded
Comment 5 ady 2024-05-06 12:02:19 UTC
(In reply to jun meguro from comment #4)
> I was able to reproduce it in version 24.2.4.

Repro when exporting to XLSX and XLS.

I also reproduce in 24.8 alpha now. Not repro in LO 7.6.5 > Regression.

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7a895ec4205659038aa95941b65715fed1a3e7be
CPU threads: 4; OS: Windows 10 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (es_AR); UI: en-US
Calc: CL threaded
Comment 6 raal 2024-05-06 17:15:14 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-24.2.
Adding Cc: to Paris Oplopoios  ; Could you possibly take a look at this one?
Thanks
 0fd3d8fa5041781bea37aeda264bda71a66c6152 is the first bad commit
commit 0fd3d8fa5041781bea37aeda264bda71a66c6152
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Mon Aug 28 10:38:53 2023 +0200

    source 1760ee4d328cfb6ba22a5b3c84016625b12adb25

155970: sc: Fix wrapText not being applied correctly on export | https://gerrit.libreoffice.org/c/core/+/155970
Comment 7 ady 2024-05-06 23:05:49 UTC
So we have yet another regression related to the same patch, either directly or as a consequence of another closely-related commit:

tdf#159690, its dupe tdf#159351, tdf#159938, and maybe others, with focused on either manual line breaks within cells or on wrap text. No signs from the original developer in these(?).