fixes issue #7965

trailing spaces