improve line clearing by hiding the chunk instead of the line
rename Line to Paragraph and Chunk to Span in order to reduce confusion
hide spans that are hidden by a previously inserted carriage returns
fix folds for folded parts that come in late