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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #5 from [email protected] ---
No, you forgot that the \n is part of the line:

your file is filled with:

"line 1\nline 2\n\n\n"

you expect byLine to output:

["line 1", "line 2", "", "", ""]

but "line 1\nline 2\n\n\n" contains **four** lines, not five:

line1\n
line2\n
\n
\n

--

Reply via email to