Open Trianan opened 7 months ago
Added "Priority: Medium" label; this issue can be worked around, but would affect anyone using a table of contents within this version of word, and it's an annoying issue to correct manually each time due to the way Word formats ToC. It also essentially breaks the Update table feature because it requires manual editing to fix, defeating the purpose of the automatic ToCs.
[BUG] Software Microsoft Word (v. 2402) - Microsoft 365 Apps for enterprise
Expected behaviour Adding a heading at the top of a table-of-contents is ignored as a heading, so the table of contents does not list itself.
Describe the bug Adding a heading to the top of a table-of-contents element and updating the table results in the Table-of-Contents heading being listed inside the table of contents itself.
To Reproduce Steps to reproduce the behaviour:
Screenshots Before adding ToC heading:
Before updating table:
After updating table:
Device (please complete the following information):
Additional context The table of contents element searches the entire document for headings, then puts them in the ToC; it's clear that this search needs to exclude the ToC itself in order to eliminate this issue.