www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17169] New: New default ddoc theme merges all paragraphs

https://issues.dlang.org/show_bug.cgi?id=17169

          Issue ID: 17169
           Summary: New default ddoc theme merges all paragraphs except
                    the first
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: cbkbbejeap mailinator.com

doccomment.d:
-----------------
/++
P1

P2

P3
+/
void foo(){}
-----------------

Compile:
$ dmd -Xf=doccomment.json -Dfdoccomment.html -c doccomment.d

The resulting JSON is ok, same as it's always been, but with the new default
theme, the HTML fails to make P2 and P3 into separate paragraphs:

-----------------
<div class="ddoc_description">
  <h4>Discussion</h4>
  <p class="para">
    P2


P3
  </p>
</div>
-----------------

--
Feb 09 2017