Bug 161866 - AutoCorrect options: Default settings should respect relationship between "Apply Styles" and "Delete spaces..."
Summary: AutoCorrect options: Default settings should respect relationship between "Ap...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.4.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2024-07-02 11:42 UTC by Ash
Modified: 2024-10-21 08:40 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice Writer AutoCorrect Options page (131.95 KB, image/png)
2024-07-02 11:43 UTC, Ash
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ash 2024-07-02 11:42:14 UTC
Description:
The two options "Delete spaces and tabs at beginning and end of paragraph" and "Delete spaces and tabs at beginning and end of line" both require the "Apply Styles" option selected also however there is no in-application indication of this.  It is specified in the 24.2.4 help pages as follows:

Delete spaces and tabs at beginning and end of paragraph
Removes spaces and tabs at the beginning of a paragraph. To use this option, the Apply Styles option must also be selected.

Delete spaces and tabs at end and start of line
Removes spaces and tabs at the beginning of each line. To use this option, the Apply Styles option must also be selected. 

Steps to Reproduce:
1. In AutoCorrect options page the two options for "Delete spaces...." are selected by default for "replace while modifying existing text", and "AutoCorrect while typing".  Both of these options will only work if "Apply Styles" is selected also, but there is no in-application indication this is the case.
2. The "Apply Styles" option is not selected by default. Thus it appears the "Delete spaces...." options should work out of the box, however they don't because "Apply Styles" is disabled.

Actual Results:
Both "Delete spaces...." options do not work with default settings because "Apply Styles" is not selected by default.

Expected Results:
The "Apply Styles" option should be enabled by default to allow both "Delete spaces..." options to also work out of the box.




Reproducible: Always


User Profile Reset: Yes

Additional Info:
Furthermore, there should be some in-application indication that "Apply Styles" is required for the "Delete spaces..." options to work.  Perhaps the "Delete spaces..." options should be nested under "Apply Styles" and disabled unless "Apply Styles" is activated.
Comment 1 Ash 2024-07-02 11:43:22 UTC
Created attachment 195083 [details]
LibreOffice Writer AutoCorrect Options page
Comment 2 Dieter 2024-09-29 09:40:19 UTC
I agree, that it makes no sense to enable these two options by default, if "Apply styles is" off by default. But since "Apply Styles" "works only with “Default Paragraph Style”, “Body Text” or “Body Text, Indented” paragraph styles, and there must be one empty paragraph before the text, if the text is not at the top of a page" [1], "Delete Spaces" seems to be reduced to a very few cases.

So I think, it should perhaps be off by default and should only be selectable, if "Apply Styles" is on.

At least related to bug 139963

cc: Design-Team for further input and decision

[1] https://help.libreoffice.org/25.2/en-GB/text/shared/01/06040100.html?System=WIN&DbPAR=WRITER&HID=cui/ui/applyautofmtpage/ApplyAutoFmtPage#bm_id3147527
Comment 3 Heiko Tietze 2024-10-21 08:40:11 UTC
We could disable the while-typing "[T]" option depending on the status of "[ ] Apply Styles". But I wouldn't change the default settings.

Closely related, we decided to split the UI into two lists in bug 158876.