It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Table of contents indents differently depending on following heading

Tom Dickson Aug 08, 2014

I have the following storage:

<ac:structured-macro ac:name="panel">
  <ac:rich-text-body>
    <p>Table of Contents</p>
    <p>
      <ac:structured-macro ac:name="toc">
        <ac:parameter ac:name="minLevel">2</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>List of Figures</p>
    <p>
      <ac:structured-macro ac:name="toc">
        <ac:parameter ac:name="maxLevel">6</ac:parameter>
        <ac:parameter ac:name="minLevel">6</ac:parameter>
        <ac:parameter ac:name="exclude">Table.*.</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:name="numberedheadings">
  <ac:parameter ac:name="skip-headings">h6</ac:parameter>
  <ac:parameter ac:name="start-numbering-with">1</ac:parameter>
  <ac:parameter ac:name="start-numbering-at">h2</ac:parameter>
  <ac:rich-text-body>
    <h2>Works</h2>
    <h6>Figure</h6>
    <h2>Fails</h2>
    <h6>Figure</h6>
    <h3>Because of this</h3>
  </ac:rich-text-body>
</ac:structured-macro>

When displayed, the second "Figure" indents way more than the first, because of the <h3> following it. If you change the <h3> to an <h2> it looks as expected.

Is there a way I can get this to display correctly in the table of contents? My goal is to use Heading 6 for a List of Figures. I'm using 5.4.4.

1 answer

0 votes
Stephen Brannen Atlassian Team Aug 10, 2014

There is a bug report for this issue at https://jira.atlassian.com/browse/CONF-34534. The only current workaround for this issue would be to use a different heading after the h6. In my testing all headings are affected by this except for h1 and only by following a heading with the heading that came before it (in your case an h2) or with the same heading (h6 followed by h6) will prevent it from moving right.

Cheers,

Stephen Brannen | Confluence Support

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

942 views 0 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you