digitalmars.D.bugs - [Issue 10654] New: std.string.outdent() wrongly manages Windows newlines, and it isn't pure nothrow
- d-bugmail puremagic.com (35/35) Jul 16 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10654
http://d.puremagic.com/issues/show_bug.cgi?id=10654 Summary: std.string.outdent() wrongly manages Windows newlines, and it isn't pure nothrow Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 16 2013