output \r before \n