Created attachment 138637 [details] Document showing rubbish in Table of Contents Table of Contents includes text from paragraphs not supposed to be included in TOC. See attached document for example.
Text "... uses a square wave (generated by Gecko).." and on is included in ToC even though it appears as "Default Style". It's simple to resolve this, just Clear Formatting on that text. It's not "from random paragraphs" but not sure why it happens and it's not obvious, so I'll confirm the bug. ToC looks wrong also when open with OO. Dave, it could help if you remember how you created those paragraphs. We should be able to reproduce this issue. And generally, text should be "Text Body" not "Default Style". Even that change resolved the issue.
This is not a bug. The problematic paragraphs (mentioned in comment 1) have outline level set to Level 2 (see Format-Paragraph-Outline&Numbering tab). Table of contents by default relies on the outline (right-click on the ToC-Edit Index; Type tab-Create From group). Usually different levels of headings have the outline set, and normal text has it set to "Body text". You may also like to take a look at Navigator, to see another effect of this incorrect manual formatting. Closing RESOLVED NOTABUG.
I eventually found the problematic setting well-hidden in paragraph formatting. Problem is, I did not set this! I just did normal editing of the document, and at some point, the TOC had the additional text in it. Something, somewhere, changed some paragraph formatting to "Outline level 4"... Aaarrggg.....
Please don't change status. "Reopened" is when there was fix which doesn't work. There's nothing that can be done here, unless you have a source with correct paragraph formatting and steps or resulting file with wrong outline.
(In reply to Dave Nadler from comment #3) > Something, somewhere, changed some paragraph formatting to "Outline level > 4"... > Aaarrggg..... If that SOME is Force from the Outer space, let's hope it's friendly and not be angry ourselves.