Table of contents indexing body text

My TOC is arbitrarily adding text from the body of my document to the TOC. The text which is being added is of the style “text body” which is exactly the same as the rest of the document’s text.

How can I stop this behaviour or is this a known bug?

I re-checked the formatting here and the text showing up in the TOC has all been asigned “text body” style, yet it keeps showing up in the TOC.

Please upload a sample document.

You should probably file a bug at the LibreOffice bugzilla website, so that it can be dealt with if it is reproducible. You may also wish to attach the involved file to the bug report.