[Issue 9155] New: Ddoc: code section should strip leading spaces

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 13 23:52:30 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9155

           Summary: Ddoc: code section should strip leading spaces
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ddoc
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2012-12-13 23:52:28 PST ---
In current, ddoc does not strip leading spaces in code section.

This code:
===============
/**
 *  Example:
 *  ---
 *  import std.stdio;
 *  writeln("Hello world!");
 *  if (test) {  
 *    writefln("D programming language");
 *  }
 *  ---
 */
void foo(){}
===============

Outputs:
===============
void foo();
Example:
  import std.stdio;
  writeln("Hello world!");
  if (test) {
    writefln("D programming language");
  }
===============

Should be:
===============
void foo();
Example:
import std.stdio;
writeln("Hello world!");
if (test) {
  writefln("D programming language");
}
===============

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list