Append \n if needed