Added line endings in export_txt.