Automatically removing all trailing whitespaces before saving is a very bad idea, indeed.