Emit chunks rather than lines. Fixes #11.
Merge branch 'emit-chunks'