Fix whitespace-only lines and trailing whitespaces.
Snap to grid