Is the intended behavior really to remove all empty lines ? Or just the last empty lines as the title of the pull request suggests ?