Added pre save hook to delete trailing whitespace