Delete newlines at ends of files