Wrong styles used in the TOC

Is there a reason or am I making any mistake for which I see my TOC with wrong styles for some of the paragraph titles? See, for instance, 2.2.1, 2.3 or 3..

I carefully checked my document but I couldn't find any special for those headers: they are normal lines with one of the Header style applied, like all the other paragraph titles...

4 answers

1 accepted

I found a workaround. Elaborating on Mick's suggestion, I did some more tests on the formatting of those headings. The first thing that I discovered was that if I removed the Heading 1 style from paragraph 3. title ("Requisiti dettagliati"), that line, alghough becoming a Paragraph line, still displayed with a huge font size (compared to the standard Paragraph font size). I don't know how that was even possible, since I'm using the plain Confluence editor (so, neither HTML nor wiki markup written directly) and I don't even find a way to augment the font size with this editor...

Than, I found out the "Clear formatting" option in the "More" decoration button and applied it on my heading and... voilà! Now the TOC is rendered correctly!

Thanks for your help!

Mauro, excellent, well done!

Mauro,

I've had this too, the problem was being caused by the formatting applied to the heading. IE, in my case, someone had added BOLD to a heading. The TOC macro picked this up and rendered the bold as well as the standard formatting and this was all displayed in the TOC.

I'd check that before getting too involved in more complex ideas.

Cheers.

Thanks Mick! I also thought about having bold applied, but this is not the case. I double checked right now and I confirm bold is not there. I also have tried to "reset" the heading by adding + removing bold, or by removing + readding the Heading style, with no luck...

Have you tried clearing customization? I'd recommend doing this in a test instance though, or perform a database backup before proceeding.

Mauro,

Can you access the HTML in Edit mode? If so, have a look at that too. I've found that sometimes the HTML goes wrong and if you edit it, everything looks as you want it too. This might be a bit of a long shot though. You can access it using the <> button in the tpo right corner of a page.

Cheers.

Hi Mick,

I actually tried to have a look at the HTML code some days ago, but I must confess I didn't go into it thoroughly, because I found it very verbose and nothing evident drew my attention.

If it happens again, I may try to look at it more carefully, so that I might understand how to reproduce this issue.

Thanks again!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

740 views 21 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you