Fixed a bug where partial lines could be emitted  while shifting data chunks from the underlying file stream.
Fixed a bug where partial lines could be emitted
 while shifting data chunks from the underlying file stream.

RustyMarvin/line-by-line,Osterjour/line-by-line,netoneko/line-by-line,thuongdinh/line-by-line,n8maninger/line-by-line,snow01/line-by-line