Remove trailing white-space and some line wrapping.