# it. Expect that there was nothing after that would mess with us.
# Don't reset it back to None just yet, as inline/block code
# autodetection needs it.
- if previous_section and i.tag != 'simplesect':
+ if previous_section and (i.tag != 'simplesect' or i.attrib['kind'] == 'return'):
assert not out.write_paragraph_close_tag
out.parsed = out.parsed.rstrip() + '</aside>'
# Now we can reset previous_section to None, nobody needs it anymore.
# Of course we're resetting it only in case nothing else (such as the
# <simplesect> tag) could affect it in this iteration.
- if i.tag != 'simplesect' and previous_section:
+ if (i.tag != 'simplesect' or i.attrib['kind'] == 'return') and previous_section:
previous_section = None
# A custom inline CSS class was used (or was meant to be used) in this
@xrefitem old "Old stuff" "Just old" Xrefitem, gets merged
@xrefitem old "Old stuff" "Just old" with this one by Doxygen itself.
+
+@see See something
+@return Does not return anything.
+
+Text.
+
+> A quote that should not cause assertion about an unclosed section
*/
int foo();
<span class="m-dox-wrap-bumper">int </span><span class="m-dox-wrap"><span class="m-dox-wrap-bumper"><a href="#a14bcd2d544b22300bba3863251393e0f" class="m-dox-self">foo</a>(</span><span class="m-dox-wrap">)</span></span>
</h3>
<p>A foo.</p>
-<aside class="m-note m-default"><h4><a href="old.html#_old000004" class="m-dox">Old stuff</a></h4><p>Xrefitem, gets merged</p><p>with this one by Doxygen itself.</p></aside>
+ <table class="m-table m-fullwidth m-flat">
+ <tfoot>
+ <tr>
+ <th style="width: 1%">Returns</th>
+ <td>Does not return anything.</td>
+ </tr>
+ </tfoot>
+ </table>
+<aside class="m-note m-default"><h4><a href="old.html#_old000004" class="m-dox">Old stuff</a></h4><p>Xrefitem, gets merged</p><p>with this one by Doxygen itself.</p></aside><aside class="m-note m-default"><h4>See also</h4><p>See something</p></aside><p>Text.</p><blockquote><p>A quote that should not cause assertion about an unclosed section</p></blockquote>
</div></section>
</section>
</div>
super().__init__(__file__, 'blocks', *args, **kwargs)
def test(self):
- self.run_dox2html5(wildcard='indexpage.xml')
+ self.run_dox2html5(wildcard='*.xml')
self.assertEqual(*self.actual_expected_contents('index.html'))
-
- def test_xrefpages(self):
- self.run_dox2html5(wildcard='todo.xml')
self.assertEqual(*self.actual_expected_contents('todo.html'))
-
- def test_builtin_xrefitem_merging(self):
- # Multiple xrefitems should be merged into one here
- self.run_dox2html5(wildcard='File_8h.xml')
- self.run_dox2html5(wildcard='old.xml')
+ # Multiple xrefitems should be merged into one
self.assertEqual(*self.actual_expected_contents('File_8h.html'))
self.assertEqual(*self.actual_expected_contents('old.html'))