Heading and body text styles getting switched around

Hi

I have a file that behaves strangely using headers.

In the attached document there is a line ‘Stappen:’. When you position your cursor after the ‘:’ and hit enter.

  • the line ‘Stappen:’ now has style Heading 3
  • the line underneath it (Nginx) gets style ‘Text body’
    Is there anyway out of this?

Regards

Paul

Untitled 2.odt (15.8 KB)

Version: 7.3.3.2 (x64) / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: nl-BE (nl_BE); UI: en-US
Calc: threaded

For me, everything is displayed as expected.


With me:
Version: 7.3.3.2 (x64) / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL

Thanks for your reply.

Yes, I agree it is displayed as expected. That is not the issue. Things are going wrong when I try to add a newline after the line ‘stappen:’ as described in my original post. Then the document suddenly looks like this.
Untitled 2-2.odt (15.8 KB)

Side note: on my linux box using 6.4.7.2. I can edit a newline after ‘stappen:’ and the line stappen stays in Text body and Nginx in Heading 3.

Regards

Paul

Doesn’t happen here with Version: 7.3.3.2 (x64) / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

1 Like

No, that doesn’t happen with me.
Stage: → remains Textbody
and the following line is then also Textbody.
The heading
Nginx → remains Header 3.

I can make this happen in 7.2.6.2 and 7.3.3.2 by clicking Tools > AutoCorrect > AutoCorrect Options and in the dialogue box that opens in tab Options ticking Apply Styles.

Unticking Apply styles stops it. Options (AutoCorrect)

[Edit] The colon seems to trigger it which I cannot see in documentation as yet

3 Likes

This looks like a bug. The feature is documented to work by pressing Enter twice (or maybe it would be also OK to press Enter at any time on the empty paragraph after the one matching “a text that starts with an uppercase letter and does not end with a period”, or even when the cursor was in the beginning of the non-empty paragraph after the matching text…). It also should consider the number of leading TABs when deciding the heading level.

In this case, the cursor was not in the paragraph after the matching text at the moment of pressing Enter, when the function ignited; the heading level didn’t match the TABs (none) … also changing the paragraph style of the following paragraph looks suspicious.

2 Likes