[Issue 17163] New: [Reg] Basic Ddoc generation no longer works

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Feb 9 01:00:06 PST 2017


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

          Issue ID: 17163
           Summary: [Reg] Basic Ddoc generation no longer works
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: bugzilla at digitalmars.com

Given the following source file:

  /** My Documentation */
  void foo() { }

And compiling with:

  dmd -c -o- bug17 -D

Gives the following output with dmd 2.067:

  <html><head>
        <META http-equiv="content-type" content="text/html; charset=utf-8">
        <title>bug17</title>
        </head><body>
        <h1>bug17</h1>
        <!-- Generated by Ddoc from bug17.d -->
  <br><br>
  <dl><dt><big><a name="foo"></a>void <u>foo</u>();
  </big></dt>
  <dd>My Documentation<br><br>

  </dd>
  </dl>

        <hr><small>Page generated by <a
href="http://dlang.org/ddoc.html">Ddoc</a>. </small>
        </body></html>

but with HEAD:

  <html><head>
        <!-- Generated by Ddoc from bug17.d -.
        <META http-equiv="content-type" content="text/html; charset=utf-8">
        <title>bug17</title>
        </head><body>
        <h1>bug17</h1>
  <br><br>
  <dl></dl>

        <hr><small>Page generated by <a
href="http://dlang.org/ddoc.html">Ddoc</a>. </small>
        </body></html>

i.e. the html for "foo" and "My Documentation" has vanished.

--


More information about the Digitalmars-d-bugs mailing list