Bug 143973 - FORMATTING: Next paragraph style not applied for existing text after hit ENTER
Summary: FORMATTING: Next paragraph style not applied for existing text after hit ENTER
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-20 11:56 UTC by MitraX
Modified: 2021-08-20 14:07 UTC (History)
0 users

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 MitraX 2021-08-20 11:56:09 UTC
SUMMARY

If a user hit "Enter" in the middle of existing paragraph, in order to create new one from the rest of the text, the new paragraph keeps the style from the previous one and it's not formatted following the "Next style" rule.

STEPS TO REPRODUCE

1. Create a new document and configure paragraph style "Text Body" to be followed by style "First Line Indent"
2. Add a paragraph with several sentences
3. Apply the "Text Body" style to the paragraph
4. Click before any sentence in the middle of the paragraph and hit ENTER

EXPECTED RESULTS

The new paragraph is formatted as the "First Line Indent" (because it's set as the next style rule of the "Text Body" style).

ACTUAL RESULTS

The new paragraph keeps formatting from the previous paragraph, in this case "Text Body" although the next style rule is "First Line Indent"

NOTES

The logic works perfectly well for completely new paragraph, i.e. without any text following the cursor after hitting the ENTER.

If this is a feature and not a bug it seems it's not documented anywhere and obviously not something a user can expect. In addition to that, I couldn't find any configuration related to this behavior (e.g. keep style from original paragraph or similar)
Comment 1 MitraX 2021-08-20 14:07:31 UTC
Well, it seems it's intended behavior (as explained in the ask libreoffice site at: https://ask.libreoffice.org/t/writer-the-next-paragraph-style-not-applied-automatically-on-hitting-enter-for-existing-text/67165)