Bug 114686 - Table of Contents includes text from some Default Style paragraphs (workaround: Clear Formatting)
Summary: Table of Contents includes text from some Default Style paragraphs (workaroun...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-25 01:40 UTC by Dave Nadler
Modified: 2018-06-04 23:04 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Document showing rubbish in Table of Contents (20.12 KB, application/vnd.oasis.opendocument.text)
2017-12-25 01:40 UTC, Dave Nadler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Nadler 2017-12-25 01:40:28 UTC
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.
Comment 1 Timur 2017-12-25 09:11:56 UTC
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.
Comment 2 Mike Kaganski 2017-12-25 11:32:29 UTC
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.
Comment 3 Dave Nadler 2017-12-25 16:16:21 UTC
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.....
Comment 4 Timur 2017-12-25 16:25:07 UTC
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.
Comment 5 Timur 2017-12-25 16:27:08 UTC
(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.