split out lines from the document, and strip indentation