Bug 153424 - Autocorrect for "Replace Custom Styles" does not work when a custom style is applied to an empty paragraph
Summary: Autocorrect for "Replace Custom Styles" does not work when a custom style is ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: AutoCorrect-Complete
  Show dependency treegraph
 
Reported: 2023-02-06 22:34 UTC by sdc.blanco
Modified: 2024-10-01 17:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2023-02-06 22:34:42 UTC
1. Apply some Custom paragraph styles to empty paragraphs in a document.
   (you might also want to make apply some custom styles some paragraphs with text
    to see that these will be converted correctly.
2. Tools > AutoCorrect > AutoCorrect Options - Options tab, select "Replace Custom Styles".
3. Run "Tools > AutoCorrect > Apply

Actual:    Empty paragraphs are not converted to Text Body PS.
Expected:  Empty paragraphs are converted to Text Body PS.

Additional information:  

Afaict, works correctly for custom style paragraphs with text.
Comment 1 Dieter 2023-02-22 07:12:25 UTC
I confirm it with

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded

I also confirm, that it works with text in paragraphs
Comment 2 sdc.blanco 2023-05-05 11:05:32 UTC
As suggested in bug 140024, comment 5, "Replace Custom Styles" should be removed as an AutoCorrect option. If that resolution is accepted, then it would also resolve this ticket (by eliminating the problem).
Comment 3 Buovjaga 2024-10-01 17:50:29 UTC
Still repro, already in 3.5 (under Format menu there).

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 298c2d5c8a6791aa6e5846b698d521079aaa445d
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 1 October 2024