Clean up the formatting and trailing whitespace of a routine before