-
Notifications
You must be signed in to change notification settings - Fork 7.3k
readline does not send last line #7238
Comments
It has been added in cfe0bab |
Nice, I guess this will close the bug in 0.10.27 then. |
Seems to be still broken in v0.10.32:
where
|
@lapo-luchini which error do you get, break? in my node 0.10.32 runtime, it prints 5 lines |
yup, you are right, however it just because |
OK, I will wait 0.12.x then. In the meantime I'm trying out this work-around:
(warning: this adds a newline even to files which already have it; that was not an issue in my use case) |
@lapo-luchini haha, i guess this will work for you, but unsure any side-effect :p |
I had to rewrite isFunction/isUndefined/isString using |
|
Confirmed, working in v0.12. Closing. Can reopen if necessary. |
When the input file does not have a \n in the last line, that data is never sent to the 'line' event (nor any other).
It might be nice to generate a 'line' event on 'close' with remaining data.
The text was updated successfully, but these errors were encountered: