From: Moritz Bunkus Date: Tue, 3 Nov 2015 08:20:33 +0000 (+0100) Subject: GDPDU-DATEV-Export: Zeilenumbrüche durch Leerzeichen ersetzen X-Git-Tag: release-3.5.4~1964 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=62302cce56932f84b98815964c1e1445f9543af2;p=kivitendo-erp.git GDPDU-DATEV-Export: Zeilenumbrüche durch Leerzeichen ersetzen --- diff --git a/SL/GDPDU.pm b/SL/GDPDU.pm index 12d872dec..8d86bc483 100644 --- a/SL/GDPDU.pm +++ b/SL/GDPDU.pm @@ -420,6 +420,8 @@ sub do_datev_csv_export { (map { ($_ => ($haben->{$_} // $soll->{$_})) } qw(acc_trans_id invnumber name vcnumber transdate itime customer_id vendor_id)), ); + $row{$_} =~ s/\r?\n/ /g for @datev_columns; # see CAVEATS + $csv->print($fh, [ map { $row{$_} } @datev_columns ]); }