From 8a76038ae50076743606411d114743f26f0d97b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 21 Oct 2015 16:47:36 +0200 Subject: [PATCH] GDPDU: Mehrzeilige Daten kollabieren --- SL/GDPDU.pm | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.20.1