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.
Created attachment 195083 [details] LibreOffice Writer AutoCorrect Options page
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
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.
Why should these two options depend on "apply styles"? Can't one delete spaces and tabs at the start or end of paragraphs without applying styles? I say: Just break this dependency.
We discussed the topic in the design meeting. As long the bug in terms of the dependency is not fixed, we should disable the misleading [T] options depending on apply style. Mind to add a code pointer, Hossein?