Consider:
----------
Ddoc
$(D_CODE
int a;
int b;
)
-----------
Compile with:
dmd -c test.dd
which creates a test.html file. Rendering the html file gives:
------------
1. int a; int b;
------------
I presume this is intended:
-------------
1. int a;
2. int b;
-------------
Looking at the html generated:
-------------
<section class="code_listing">
<div class="code_sample">
<div class="dlang">
<ol class="code_lines">
<li><code class="code">int a;
int b;
</code></li>
</ol>
</div>
</div>
</section>
--------------
and the line break in the code is not respected. This used to work, at least back in version 2.063 the D code blocks rendered correctly.
What happened?
The 2.073 compiler would generate:
---------------
<pre class="d_code"><span class="d_keyword">int</span> a;
<span class="d_keyword">int</span> b;
</pre>
---------------
Comment #1 by bugzilla — 2023-10-07T20:31:28Z
This is a bummer because it means I can't upgrade to the latest compiler to generate the pages for digitalmars.com.
Comment #2 by maxhaton — 2023-10-07T21:05:23Z
What does "not work" mean? There's a line break in the code block
Comment #3 by dlang-bot — 2024-01-17T07:29:42Z
@Sumandora updated dlang/dmd pull request #16050 "Fix issue 24179 - Fix line breaks in DDoc" fixing this issue:
- Fix Bugzilla issue 24179 - Regenerate test solutions for broken cases
https://github.com/dlang/dmd/pull/16050
Comment #4 by dlang-bot — 2024-01-22T12:48:54Z
dlang/dmd pull request #16050 "Fix issue 24179 - Fix line breaks in DDoc" was merged into master:
- 03c8e4fec2ca203d59126e7f38a5304ba4999162 by johannes:
Fix Bugzilla Issue 24179 - Fix line breaks in DDoc
https://github.com/dlang/dmd/pull/16050