Merge consecutive lines into one paragraph