Line end and whitespace cleanup.