Annoying blank paragraph below table of contents

Hello everyone,
I have a minor but annoying issue with my Writer documents :
Every time I create a table of contents then a page break, a paragraph remains, which I can’t remove because of table of contents restrictions.
Is there any way to circumvent that please ? Thanks in advance.

LO version : 25.8.1.1
OS : Linux Mint 22.2

When an TOC is inserted, a section for the TOC is created (automatically) that paragraph belongs to the section that is protected against manual changes.

  1. Unprotec the TOC
  2. Delete the paragraph
  3. Checks if the paragraph is not created when updating the TOC
1 Like

It worked, thanks

There are several ways which avoid unprotecting the TOC and thus do not need to check when you update the TOC.

Note however that if you have a page break after the TOC, this empty paragraph is not noticeable.

Specific paragraph style

When I face such a situation where i want to suppress a paragraph but I can’t for technical reason (such as your page break), I assign custom Invisible paragraph style. Spacing above and below in this style are set to 0 cm and font size at 2 pt (the absolute minimum in Writer.

Tune the paragraph after the TOC

Generally the first paragraph after the TOC is a heading. This heading has a specific paragraph style applied to it which translates the common properties of the headings at this level. For instance, all your Heading 1 can require that a page break precede them. This is recorded in the Text Flow tab. Then the empty paragraph below the TOC becomes pointless (the page break comes with the heading) and can be removed.

Remark:
You have enabled Spotlight and your screenshot shows you have applied direct formatting on your TOC. This is bad practice which will require manual editing every time you update the TOC. Instead, customise the Contents n paragraph styles. In this case, Contents 2 (TITRE) and Content 3 (CHAPITRE).

1 Like

What do you mean there’s direct formatting within my TOC ? I guess the diagonal pattern in the spotlight UI shows the paragraphs that have some, but as far as I know I haven’t done anything
And doing Crtl+M breaks the TOC anyway :

The diagonal pattern is a flag for direct formatting, which is confirmed by Ctl+M. Sources of bad layout may lie in the Structure & Formatting: line configuration in the TOC dialog (Entries tab) and in the various Contents n styles. My preference will go to “Structure:” where you should adjust tab positions or tick the Align right check box.

1 Like

Ticking the Align right checkbox (in the Tab stop box) or the Tab position relative to paragraph style indent checkbox actually is the source of direct formatting
It looks like tabs are considered direct formatting

Wrong if they are configured from the dialog. Attach a very reduced sample of your document so that I can have a look at it. The TOC page + 1-2 pages containing your headings is enough.

1 Like

Document.odt (40.3 KB)
There you go
Be aware, there is a very annoying “Default_5f_5f_5f_5f_5f_5f_5f…” character style that will make Cinammon crash if you open something like the TOC dialog ; no idea where it comes from, even if I delete it it comes back when I reopen the document

Very strange: your TOC suffers a “rebelling” direct formatting (DF) which persists after Ctl+M. This DF impacts the position of the right-aligned tab stops.

To fix it in Edit TOC, Entries tab:

  • untick Tab pos relative to para style indent
    This setting is global apparently, no need to set it explicitly in every level.
  • OK
    This fixes TOC layout. If it does not Tools>Update>Update All.

You can now reopen your TOC configuration to tick the box if you want it and to protect the TOC against manual changes.

Your offending character style Default_5f_… is only used in Tools>Heading Numbering to format the number. Such a spurious style often appears when list numbering is tampered with in a M$ Word session.

Nevertheless you can delete it though it is used (I wonder why Writer does not detect this usage; special context?). After that, fix Tools>Heading Numbering:

  • select level 1-10 to act simultaneously on all levels
  • choose None from Character style: drop-down menu
  • OK

One last minor remark: correct wording is “Le vendeur marié” (masculine form).

Your solution to the DF does not work unfortunately, the issue remains

Your solution to the character style issue worked, thanks

For the orthography, I’m just dumb that’s it