williamwicks/node-eachline — pull request #4 by glasser (2014-02-14 01:37:09+00:00)
Title: Only keep non-empty remnants around

This prevents us from sending an unnecessary empty line through in
_flush.

To see the effects, use a simple script like in https://github.com/williamwicks/node-eachline/issues/2

```js
var fs = require("fs");
var eachline = require("eachline");

fs.createReadStream('./data.txt')
.pipe(eachline(function(line, i){
console.log(i, line);
}));
```

and run it on a small file. Without this PR, there's an extraneous blank line at the end of every file.