Fix line ending and remove whitespace.