io.streams.document: Keep track of newlines stream.