* ImportExport: Replace CRLF with LF so excel does not break lines early (myStylite#974)

This commit is contained in:
Klaus Leithoff 2010-12-16 14:50:29 +00:00
parent b6e61ce94f
commit c05b748bc0

View File

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