Fix leading break

Hey Max,

Was just using this to chop up some command line program output and I noticed it got stuck in a loop if it encountered a line break at the beginning of the buffered input.  I believe the attached changes should fix that and leave everything else working as well (well - the tests still pass).

Cheers,
Damon.