Uses the correct linefeed for Unix/Windows