Removing unnecessary empty lines