issue #3871: Removes unneeded empty lines.