The effect of collisions on the Doppler broadening of spectral lines