Add proper line breaks to file