Manage a document's content as a sequence of lines.