You should set your editor to remove trailing whitespace like this.