Remove trailing newlines from XLS output