When the following code is used for document generation, the generated HTML layout will be broken:
-------------------------------
/++
Test
- test
+/
unittest
{
// test
}
-------------------------------
$ dmd -D -c -o- .\source\unittests_example.d
The following is a well-formed version of the relevant section:
-------------------------------
<div class="ddoc_examples">
<h4>Examples</h4>
<p class="para">
Test
<ul>
<li>test
<section class="code_listing">
<div class="code_sample">
<div class="dlang">
<ol class="code_lines">
<li><code class="code"><span class="comment">// test</span></code></li>
</ol>
</div>
</div>
</section>
</li>
</ul>
</p>
</div>
-------------------------------
The `<section class="code_listing">...</section>` above must come after the `</li></ul>`.
Comment #1 by robert.schadek — 2024-12-13T19:18:06Z