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.