Bug 22230 – Markdown trailing list breaks unittest example

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-08-21T10:15:04Z
Last change time
2024-12-13T19:18:06Z
Assigned to
No Owner
Creator
SHOO
Moved to GitHub: dmd#19974 →

Comments

Comment #0 by zan77137 — 2021-08-21T10:15:04Z
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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19974 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB