mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Replace all CRLF in values with CR so Excel doesn't break lines early.
This commit is contained in:
parent
cc72785afe
commit
bbd874dc05
@ -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 . $dataElement . $enclosure;
|
||||
$string .= $enclosure . str_replace("\r\n", "\r", $dataElement) . $enclosure;
|
||||
$writeDelimiter = true;
|
||||
}
|
||||
$string .= "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user