Revert 33366, replacing \n doesn't help Excel

This commit is contained in:
Nathan Gray 2010-12-15 22:51:07 +00:00
parent cc1310b6de
commit 8f05a9f411

View File

@ -335,7 +335,7 @@ class importexport_export_csv implements importexport_iface_export_record
$writeDelimiter = false;
foreach($dataArray as $dataElement) {
if($writeDelimiter) $string .= $delimiter;
$string .= $enclosure . str_replace("\r\n", "\r", $dataElement) . $enclosure;
$string .= $enclosure . $dataElement . $enclosure;
$writeDelimiter = true;
}
$string .= "\n";