Fix newlines in output