Add newlines.
Remove trailing whitespace.