Strip only trailing whitespace, to preseve code indents