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"); } ===============
https://github.com/D-Programming-Language/dmd/pull/1377
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c47ef9ed4cc5c7f50df878643f22fc1601040b0c fix Issue 9155 - Ddoc: code section should strip leading spaces https://github.com/D-Programming-Language/dmd/commit/0c2d8a9f7f82c122174d595ccfb5847bbf162aaf Merge pull request #1377 from 9rnsr/fix9155 Issue 9155 - Ddoc: code section should strip leading spaces