Remove unnecessary newline from output.