Bug 140024 - "replace custom styles" option in AutoCorrect needs critical review
Summary: "replace custom styles" option in AutoCorrect needs critical review
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) Master
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
Reported: 2021-01-30 15:21 UTC by sdc.blanco
Modified: 2021-01-30 15:36 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2021-01-30 15:21:26 UTC
1. Apply some Custom paragraph styles to text in a document.
2. Select "Replace Custom Styles" in Tools > AutoCorrect > AutoCorrect Options - Options tab.
3. Run "Tools > AutoCorrect > Apply

In general, Custom Styles are replaced by this command with "Text Body" PS


1. Have been able to get custom styles converted to:
 - Text Body Indent  (when "Before text indent" attribute is used)
 - Hanging Indent    (when "First line indent" and "Before text indent" used)
 - First Line Indent (when "First line indent" is used)
2.  Paragraph Style with four-sided border was NOT converted.

Copied from bug 90507, comment 11

> 'Replace Custom Styles' has some interesting behavior as well. 
> Not clear if those are relative to the Standard Template, or to the 
> Template used to create the document--but its action when applied is 
> to remove other PS and revert to something present in the template.
> So, makes me wonder exactly what is considered a "custom" style as related
> to the AutoFormat in (editeng/acorrcfg.hxx & acorrcfg.cxx)?  
Copied from bug 90507 comment 17
> Need to verify the handling of 'custom' styles, what constitutes them and
> how are they made non-custom so can be protected from the 'Replace Custom
> Styles' action.
> Results of the 'Replace Custom Styles' action seems error prone to
> document layout at best.

> Well we should improve the documentation, obviously. 
Have made some modifications in relation to observed behavior. Can documentation be improved further? 

Does command work as intended?
Comment 1 V Stuart Foote 2021-01-30 15:36:24 UTC