If I save this program on Windows (with the typical newlines used on Windows): import std.stdio: writeln; import std.string: outdent; string foo() /*pure nothrow*/ { return q{ first line second line third line }.outdent; } void main() { writeln(foo()); } It outputs double newlines: first line second line third line Also std.string.outdent() is not pure nor nothrow.
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9991 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB