Your IDE should be set to remove trailing whitespace.