Heading / Subsequent Text formatting weird behavior

Hello,
I believe that the fresh installation of LO Writer Version: 6.3.4.2 has some strange behavior:
Starting with a document that is formatted as Text Body, I then insert some lines of text which are formatted as Headings (1, 2, etc). The OLD behavior was that pressing Enter starts a new paragraph underneath, resets the formatting from current Heading to Text Body, and then formats the text as Text Body.
New (buggy) behavior is that paragraph underneath still gets called “Text Body” EXCEPT IT CARRIES FORMATTING OF THE HEADING ABOVE IT (text is larger, bold, etc). Selecting text and specifying it to be Text Body HAS NO EFFECT. The only way to “fix” the formatting that alleges it is “Text Body” is to keep selecting other formatting types (such as Heading 3), and keep trying to then apply “Text Body” formatting. What used to be a milli-second operation now takes me 20 seconds to resolve FOR EVERY HEADING THAT I INSERT.

Linux Mint 19.3 LO Writer Version: 6.3.4.2

[UPDATE] The template was somehow at fault, not LO. See accepted answer and generally suggested editing behavior:

  • Use built-in headings to apply “heading” information to a document.
  • To change how “headings” look, DO NOT edit their formatting directly, but edit their style instead.

Just to make sure you didn’t inadvertently activate some formatting, do the following test:

  • create a heading paragraph
  • before typing content, Ctrl+M and also set character style (not paragraph style) Default Style
  • type the heading
  • hit Return to open a new Text Body paragraph
  • type some text; is it still formatted as a heading?

Give outcome of this text either as an edit to your question (clearly identified) or as a comment.

@ajlittoz: Thank you for your comments! I will try them next time. I resorted to re-creating my template, clearing all formatting of affected files and re-applying headings to messed up files. Somehow, somewhere there is an issue hiding in my simple template. This issue is not occurring in other files. Turning ON formatting does not reveal the cause. I have never encountered a “broken” template like this, like it often happens in M$Word. I have NEVER seen an issue with LO barfing up formatting, and this issue just happened RIGHT AFTER an upgrade to 6.3.4.2. I guess stuff happens! I can only hope that the issue has been wiped out from my multiple files which have recently been typed up, all based on this buggy template.

@ajlittoz: I am struggling with attachments here. Here is the broken template. Any ideas? I am not a 100% I am following your steps exactly, so you can try for yourself!:

http://www.mkrd.info/uploads/tmp/DOC%20BROKEN%20DSN%20XXX%20TEMPLATE%20_3.odt

I reopened your question in order to be able to give an answer.

6.3.4.2 is not at fault. I reproduced the “bug” in 6.2 and 4.1.

You probably edited your “template” applying changes as direct formatting on your headings instead of updating the paragraph style.

When you hit Return, a new paragraph is created with style set according to the Next Style property. Thus, you switch from Heading n to Text Body. However this switch involves only the paragraph style. If any attribute is set through a character style or direct formatting, they persist through the switch.

In your case, some (not all!) Heading 1 have received a “direct” bold command which will be forwarded to any paragraph created after it.

Fix is immediate:

  • select all text with Ctrl+A
  • clear direct formatting with Ctrl+M

Warning! This clears also all intentional direct formatting you could have made on your “template”. Direct formatting must be avoided as completely as possible (though it can’t be replaced in some special cases such as resetting page number or restarting list numbering) otherwise you bump into the kind of issue you experience. Work with styles (paragraph, character, page, frame, list): they give you full structured and organised control over your text appearance.

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

@ajlittoz “You probably edited your “template” applying changes as direct formatting on your headings instead of updating the paragraph style. Direct formatting must be avoided as completely as possible.”

I know enough to NOT apply direct formatting to headings, and to edit heading styles instead. I guess I am surprised as to how and when I was able to barf up such a simple template. This has not happened to me before, using Headings and such for a few years now of moderate use… Thank you for the additional comments, they should help others having the same issue and finding this article. I have reworded the article to remove claims of this being a bug.