From: Sven Schöling Date: Wed, 21 Oct 2015 14:47:36 +0000 (+0200) Subject: GDPDU: Mehrzeilige Daten kollabieren X-Git-Tag: release-3.5.4~1977 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8a76038ae50076743606411d114743f26f0d97b8;p=kivitendo-erp.git GDPDU: Mehrzeilige Daten kollabieren --- diff --git a/SL/GDPDU.pm b/SL/GDPDU.pm index 083a676ca..30d0361f6 100644 --- a/SL/GDPDU.pm +++ b/SL/GDPDU.pm @@ -323,6 +323,8 @@ sub do_csv_export { $self->export_ids->{$table}{$keep_col} ||= {}; $self->export_ids->{$table}{$keep_col}{$row->[$col_index{$keep_col}]}++; } + s/\r\n/ /g for @$row; # see CAVEATS + $csv->print($fh, $row) or $csv->error_diag; } $sth->finish(); @@ -509,6 +511,12 @@ Not confirmed yet: Foreign keys seem only to work with previously defined tables (which would be utterly insane). +=item * + +The CSV import library used in IDEA is not able to parse newlines (or more +exactly RecordDelimiter) in data. So this export substites all of these with +spaces. + =back =head1 AUTHOR