carriage return character fix in the template