Added an option to indent the text. Fix a problem with line_ends on parse