Bug 159690 - Manual line break forces automatic Wrap Text - comment 17
Summary: Manual line break forces automatic Wrap Text - comment 17
Status: CLOSED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All All
: high major
Assignee: Justin L
URL:
Whiteboard: target:25.2.0 target:24.8.3 target:24...
Keywords: bibisected, bisected, regression
: 159351 159834 163099 163150 163422 (view as bug list)
Depends on:
Blocks: Calc-Cells
  Show dependency treegraph
 
Reported: 2024-02-12 12:18 UTC by maison
Modified: 2024-11-19 11:12 UTC (History)
13 users (show)

See Also:
Crash report or crash signature:


Attachments
First test file. As you start moving through the 3 cells, the “Wrap text automatically” option is set its way for each cell again. (11.79 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-02-12 21:45 UTC, maison
Details
Second test file. Not only that, but the cell alignment goes awry as well. (9.54 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-02-12 21:46 UTC, maison
Details
Francewhoa---Test_File---Zombie_Auto_Wrap---V1.ods (10.96 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-04-05 21:34 UTC, Francewhoa
Details
Francewhoa---Screenshot---1---Deactivated_wrap---V1.png (259.94 KB, image/png)
2024-04-05 21:37 UTC, Francewhoa
Details
Francewhoa---Screenshot---2---1st_line_without_wrap---V1.png (245.72 KB, image/png)
2024-04-05 21:38 UTC, Francewhoa
Details
Francewhoa---Screenshot---3---1st_line_with_zombie_wrap---V1.png (219.15 KB, image/png)
2024-04-05 21:40 UTC, Francewhoa
Details
Francewhoa---Screenshot---4---Forced_zombie_wrap---V1.png (228.71 KB, image/png)
2024-04-05 21:41 UTC, Francewhoa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maison 2024-02-12 12:18:41 UTC
Description:
This bug has never happened in Calc ≤ 7.6.4 and is so annoying.

Whenever I open an ods file or create a new one that has some text that is longer than the cell size, there comes a point when Calc starts to behave as if the option “Wrap text automatically” is set true for each cell I move through. As I browse the file, rows start expanding at their own initiative when you move out of one cell of the row.

As each cell is changed at once, this also fills the undo list with a lot of “Attributes” actions.

I don’t know what triggers this situation, because sometimes the problem starts as soon as the file is open, but sometimes after a series of actions or edits. The file that might trigger it is irrelevant, even a newly created one can do it.

To work it around, Calc has to be stopped and then it would keep the expected behaviour for a longer or shorter while, until the bug starts again. Sometimes it starts from the first action.

Of course I tried to set and reset all the options related to text wrapping for all the cells in the sheet in the Ctrl 1 options, but it doesn’t make a difference; Calc ultimately loses its usual behaviour.

Tested on two computers Windows 7 and 10, even with a new profile.

Steps to Reproduce:
↑

Actual Results:
Cells are automatically and not expectedly transformed into active “Wrap text automatically”.

Expected Results:
Work the way previous Calc versions worked. Don’t change behaviour in the middle of the action flow. Don’t set “Wrap text automatically”


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Please don’t release new “features” that are not thoroughly tested and create regressions.
Comment 1 ady 2024-02-12 12:37:54 UTC Comment hidden (obsolete)
Comment 2 maison 2024-02-12 12:48:01 UTC Comment hidden (obsolete)
Comment 3 ady 2024-02-12 13:01:28 UTC
I can only say that introducing a manual line break triggers the wrap text attribute in 24.2. This was not happening in 7.6.

I reported the same as part of my post in bug 97106 comment 12.

There might be other issues related to column width and row height.

Without a sample worksheet (as minimal as possible), there is no way to guess what exactly you are seeing on your screen.
Comment 4 Telesto 2024-02-12 15:01:22 UTC Comment hidden (obsolete)
Comment 5 maison 2024-02-12 21:45:35 UTC
Created attachment 192530 [details]
First test file. As you start moving through the 3 cells, the “Wrap text automatically” option is set its way for each cell again.
Comment 6 maison 2024-02-12 21:46:16 UTC
Created attachment 192531 [details]
Second test file. Not only that, but the cell alignment goes awry as well.
Comment 7 maison 2024-02-12 21:47:43 UTC
So, I managed to construct two test files with a slight variation.
First, I have to retract the fact that the problem is visible on new and empty files (I was testing several things that made me confused). But the good news is that it’s tested and reproducible on 24.2.

Contrary to the other referenced bug, it has nothing to do with xls files (I used native ods) and it is not dependable on formulas.

The trigger is when you leave a cell that contains a line break, then Calc goes crazy.

1ˢᵗ file:
Just move through the three cells. See line 3 expanding out of nowhere if you leave it first. Watch the undo list stack up with useless “attributes”. See Calc asking you to save the file when you close it. (Although not exactly the same thing, will bug 156431 ever be solved?)

2ⁿᵈ file:
It has the same content, but I happened to define a cell height — just the default height. Browse through the cells. See how NOT ONLY word wrapping is affected, but the CELL ALIGNMENT as well: the last cells change their visible content. 

This bug is so workflow‐breaking for me that unfortunately I have to revert to 7.2 and not upgrade until it is resolved.
Comment 8 maison 2024-02-12 21:52:22 UTC
(revert to 7.6.4 rather, but that’s irrelevant)
Comment 9 Telesto 2024-02-12 22:04:43 UTC
Confirm comment 3 (didn't test comment 4)
Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 4d381b54d1c598c181b4a21a8bf0db86eb4668d1
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded

as reported not in
Version: 7.6.3.0.0+ (X86_64) / LibreOffice Community
Build ID: 35f19e5cb93ce218787904e99c2bedfd40e725cc
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded
Comment 10 raal 2024-02-13 17:09:20 UTC
(In reply to maison from comment #5)
> Created attachment 192530 [details]
> First test file. As you start moving through the 3 cells, the “Wrap text
> automatically” option is set its way for each cell again.

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
 d536a038969c482dff40481d849d8671a9ac7f5f is the first bad commit
commit d536a038969c482dff40481d849d8671a9ac7f5f
Author: Jenkins Build User <tdf@maggie.tdf>
Date:   Thu Nov 23 16:18:50 2023 +0100

    source 17e362e56f9e15d0214c441e632c91d22e58519d

159758: tdf#158252 sc: Enable text wrapping when inputting line breaks in cell | https://gerrit.libreoffice.org/c/core/+/159758
Comment 11 ady 2024-02-15 22:36:43 UTC
To simplify and summing up:

When a cell contains at least one manual line break, the Wrap Text attribute for that cell is automatically and _forcefully_ (re-)applied. We now cannot have a cell that contains manual line breaks that would not have the Wrap Text attribute.

Users should be able to use these 2 items independently.

This seems to be both, a regression (in general) and an implementation error (of the patch mentioned in comment 10).
Comment 12 maison 2024-02-16 05:52:38 UTC
Thanks for the summary, ady.
I hope the cell alignment is checked as well with the second test file, because it might be a separate problem or a side effect.
Comment 13 Telesto 2024-02-16 09:05:08 UTC
Increasing importance..
Comment 14 Tom Haws 2024-02-22 15:55:10 UTC Comment hidden (off-topic)
Comment 15 benico 2024-02-23 19:08:31 UTC
*** Bug 159834 has been marked as a duplicate of this bug. ***
Comment 16 ady 2024-02-24 15:35:31 UTC
*** Bug 159351 has been marked as a duplicate of this bug. ***
Comment 17 ady 2024-02-29 06:53:59 UTC
An update on this behavior.

While now tdf#159938 is solved (LO Dev. built on 2024-02-29), which allows to *unset* the wrap text attribute and save it, we still have a problem in tdf#159690.

1. On an empty cell, introduce text that includes a manual line break (using [CTRL]+[ENTER] where the manual line break should be located within the text).
2. Press [ENTER] to finish the introduction of the text (which includes the manual line break).
2. Move the focus back to the above cell.

At the moment we finished editing the cell, it also received the Wrap Text attribute, just because there is a manual line break in it.

Before LO 24.2.0, the Wrap Text was not automatically applied (which was/is the expected behavior).

So, now that tdf#159938 is solved, the Wrap Text is not necessarily _forced_ (i.e. we can unset it and save), but it is still automatically initially applied.
Comment 18 maison 2024-03-02 14:21:52 UTC
I hoped to see this bug resolved in 24.2.1, but it’s not yet.
Comment 19 Francewhoa 2024-04-05 21:34:03 UTC
Created attachment 193524 [details]
Francewhoa---Test_File---Zombie_Auto_Wrap---V1.ods

Starting with this comment, I'm adding a few files

Then I'll add a comment to confirm this challenge with recently released 24.2.2.2. Including both our steps to reproduce and some new information that might be useful to resolve this challenge.
Comment 20 Francewhoa 2024-04-05 21:37:44 UTC
Created attachment 193525 [details]
Francewhoa---Screenshot---1---Deactivated_wrap---V1.png
Comment 21 Francewhoa 2024-04-05 21:38:16 UTC
Created attachment 193526 [details]
Francewhoa---Screenshot---2---1st_line_without_wrap---V1.png
Comment 22 Francewhoa 2024-04-05 21:40:44 UTC
Created attachment 193527 [details]
Francewhoa---Screenshot---3---1st_line_with_zombie_wrap---V1.png
Comment 23 Francewhoa 2024-04-05 21:41:21 UTC
Created attachment 193528 [details]
Francewhoa---Screenshot---4---Forced_zombie_wrap---V1.png
Comment 24 Francewhoa 2024-04-05 22:24:03 UTC
This is to confirm this challenge. Using Calc 24.2.2.2.

Also confirming that we could not reproduce this challenge with Calc ≤ 7.6.4

Adding a manual line break, then press "Enter" key, forces a not needed automatic wrap text

Both me and the Ubertus.Org team would be happy, as volunteer, to contribute testing new versions and writing documentation, if needed. Using the LO from https://flathub.org/apps/org.libreoffice.LibreOffice

--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---



Below is the same as above. But with detailed steps and screenshots if you're interested in those.

--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---



Steps to Reproduce:

1. Using Calc version 24.2.2.2, add text to a cell with a manual line break. For example, the cell "A1". Adding at least one manual break is important. As it triggers this challenge 100% of the time. Alternatively, use the attached already configured "Francewhoa---Test_File---Zombie_Auto_Wrap---V1.ods" file.

2. Using the "Format Cells" window, deactivate "Wrap text automatically" for cell "A1". This screenshot https://bugs.documentfoundation.org/attachment.cgi?id=193525 shows this config.

3. This screenshot https://bugs.documentfoundation.org/attachment.cgi?id=193526 shows that the cell "A1" presently does not have any wrap text.

4. Edit this cell content. For example, add or remove a letter in the text. Then press "Enter" key to validate your edit.

5. Somehow, Calc automatically forced reactivated the not needed "Wrap text automatically" configuration. In other words, a Zombie-Wrap (joke ;). The attached screenshots https://bugs.documentfoundation.org/attachment.cgi?id=193527 and https://bugs.documentfoundation.org/attachment.cgi?id=193528 show this challenge.

--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---



Narrowing Down:

Below is what we found while testing. Which might be useful to resolve this challenge.

• Using Calc 24.2.2.2, using this file https://bugs.documentfoundation.org/attachment.cgi?id=193524 Using the steps to reproduce above, at step 3, instead of pressing "Enter" key, press on "Escape" (Esc) key. Your edit is lost. But the Zombie-Wrap is not forced. This means that somehow, pressing "Enter" key triggers this challenge.

• Using a version of Calc older than 24.2.2.2, I forgot to write down which one exactly, most likely the before last version or the second before last version. Using the steps to reproduce above, complete the first 3 steps only. Then left click on cell "A1" to select it. Then save the document. The Zombie-Wrap is forced. This means that somehow, when a selected cell includes a break line, when the user save the document, the Zombie-Wrap is triggered. This challenge is resolved with 24.2.2.2. But the other challenge above with the "Enter" key is not yet resolved.

• Also using a version of Calc older than 24.2.2.2, again using the steps to reproduce above, complete the first 3 steps only. Then left click on cell "A4" to select it. In the attached file this cell is empty. Then save the document. The Zombie-Wrap is not forced. Again, this confirms that somehow, only when a selected cell includes a break line, when the user save the document, the Zombie-Wrap is triggered. Again, this challenge is resolved with 24.2.2.2. But the other challenge above with the "Enter" key is not yet resolved.

--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---



Using:

• LibreOffice 24.2.2.2 from https://flathub.org/apps/org.libreoffice.LibreOffice

• Debian 12 Bookworm 64 bits

• GNOME 43.9

• Wayland
Comment 25 Francewhoa 2024-05-03 13:07:27 UTC
We tested LO 24.2.3.2. Which was release today, May 3rd, 2024. This challenge is still present. Using Flatpak from https://flathub.org/apps/org.libreoffice.LibreOffice
Comment 26 JulesFox 2024-06-19 16:33:20 UTC Comment hidden (me-too)
Comment 27 Francewhoa 2024-06-21 15:03:36 UTC Comment hidden (noise)
Comment 28 Francewhoa 2024-06-27 14:16:29 UTC
This is to confirm that this challenge can be reproduced with LO: 
• Version: 24.2.4.2 (X86_64)
• Build ID: 51a6219feb6075d9a4c46691dcfe0cd9c4fff3c2
• Release: June 27th, 2024
• Package: Flatpak from https://flathub.org/apps/org.libreoffice.LibreOffice
Comment 29 Micle David 2024-07-12 04:52:33 UTC Comment hidden (spam)
Comment 30 Francewhoa 2024-07-12 13:24:16 UTC
This is to confirm that this challenge can be reproduced with LO: 
• Version: 24.2.5.2 (X86_64)
• Build ID: bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59
• CPU threads: 8; OS: Linux 6.7; UI render: default; VCL: gtk3
• Locale: fr-CA (fr_CA.UTF-8); UI: fr-FR
• Package: Flatpak from https://flathub.org/apps/org.libreoffice.LibreOffice
• Calc: threaded
• Release: July 12th, 2024
Comment 31 luciferdonghua 2024-08-19 19:30:49 UTC Comment hidden (spam)
Comment 32 Francewhoa 2024-08-27 16:11:49 UTC
This is to confirm that this challenge can be reproduced with LO: 
• Version: 24.8.0.3 (X86_64)
• Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
• Release: August 22nd, 2024
• CPU threads: 8; OS: Linux 6.9.7; UI render: default; VCL: gtk3
• Locale: fr-CA (fr_CA.UTF-8); UI: fr-FR
• Package: Flatpak from https://flathub.org/apps/org.libreoffice.LibreOffice
• Calc: threaded
Comment 33 donghuastream 2024-08-30 18:06:23 UTC Comment hidden (spam)
Comment 34 nobu 2024-09-09 07:35:06 UTC
Reproducible with
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c8eb95e8407ef24436e0e8e218dce535df6bb2e5
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 10240); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded
Comment 35 ady 2024-09-23 02:19:43 UTC
*** Bug 163099 has been marked as a duplicate of this bug. ***
Comment 36 ady 2024-09-26 02:52:41 UTC
*** Bug 163150 has been marked as a duplicate of this bug. ***
Comment 37 lucifer donghua 2024-09-30 11:18:28 UTC Comment hidden (spam)
Comment 38 lucifer donghua 2024-09-30 11:19:08 UTC Comment hidden (spam)
Comment 39 Commit Notification 2024-10-03 01:05:55 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

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

tdf#161453 tdf#158252 tdf#159690 Revert "sc: Fix wrapText ...

It will be available in 25.2.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.
Comment 40 Commit Notification 2024-10-03 11:29:09 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

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

tdf#161453 tdf#158252 tdf#159690 Revert "sc: Fix wrapText ...

It will be available in 24.8.3.

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 41 Commit Notification 2024-10-03 11:33:13 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/55a8fce5d76bba0657ed76c85439fac8d1d00c8d

tdf#159690 tdf#159938 Revert "tdf#158252 sc: Enable text wrapping...

It will be available in 25.2.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.
Comment 42 Commit Notification 2024-10-03 14:07:47 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

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

tdf#161453 tdf#158252 tdf#159690 Revert "sc: Fix wrapText ...

It will be available in 24.2.7.

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 43 Commit Notification 2024-10-03 21:42:40 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

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

tdf#159690 tdf#159938 Revert "tdf#158252 sc: Enable text wrapping...

It will be available in 24.8.3.

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 44 Commit Notification 2024-10-04 07:25:51 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

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

tdf#159690 tdf#159938 Revert "tdf#158252 sc: Enable text wrapping...

It will be available in 24.2.7.

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 45 nobu 2024-10-06 04:53:02 UTC
There are no zombies that appear infinitely.
thank you.

---
No zombie wrap
Version: 24.8.3.0.0+ (X86_64) / LibreOffice Community
Build ID: 81268254b69ae1a9acbe52e4aa63910343f4987c
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 10240); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded

No zombie wrap
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 99c7cf2816b2d0016832552dbe6c55456ade42e0
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 10240); UI render: default; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded
Comment 46 ady 2024-10-15 19:33:56 UTC
*** Bug 163422 has been marked as a duplicate of this bug. ***
Comment 47 Cherry Hagopian 2024-11-19 09:33:33 UTC Comment hidden (spam)