Clean up trailing whitespace when pretty-printing commits