[Issue 11995] std.File.ByLine strips trailing empty line

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Dec 12 23:42:08 PST 2014


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

Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario at gmx.de

--- Comment #4 from Rainer Schuetze <r.sagitario at gmx.de> ---
I don't think this is a bug. The "standard" line has a trailing newline, you
even get warned about it missing for the last line by various programs.

If you want to exactly reproduce the original text use KeepTerminator.yes. This
also works for mixed line endings on Windows (CRLF and LF).

--


More information about the Digitalmars-d-bugs mailing list