[Issue 12794] New: ddoc does not properly support code snippets for documented parameters

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat May 24 04:27:29 PDT 2014


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

          Issue ID: 12794
           Summary: ddoc does not properly support code snippets for
                    documented parameters
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ddoc
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: andrej.mitrovich at gmail.com

The ddoc output of this function looks bad:

-----
foo.

Params:
  name = name

  callback = A callback. Example of the callback:

-----
void someCallback();
{
    int x;
}
-----

 etc = etc
*/
void foo(string name, void function() callback, int etc);
-----

The location of the "void function() callback" parameter is stuck at the left
of the code snippet instead of the beginning of the description which was: "A
callback. Example of the callback: "

--


More information about the Digitalmars-d-bugs mailing list