mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 17:08:16 +01:00
* ImportExport: Replace CRLF with LF so excel does not break lines early (myStylite#974)
This commit is contained in:
parent
2ae764a2e6
commit
5cd49ff707
@ -171,7 +171,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", "\n", $dataElement) . $enclosure;
|
||||
$writeDelimiter = true;
|
||||
}
|
||||
$string .= "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user