From: miker Date: Wed, 17 Sep 2008 14:33:57 +0000 (+0000) Subject: Text::CSV changes ... arg; adding line breaks for bre format X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fd693ddab6394e994bcb0b272598e90215c599c0;p=Evergreen.git Text::CSV changes ... arg; adding line breaks for bre format git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@10615 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm b/Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm index fba5fe6d85..f17cbe4bdb 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/Exporter.pm @@ -65,7 +65,6 @@ sub handler { my $csv = new Text::CSV; while (<$file>) { - chomp; $csv->parse($_); my @data = $csv->fields; my $id = $data[$col]; @@ -207,7 +206,7 @@ sub handler { next unless $bib; if (uc($format) eq 'BRE') { - $r->print( OpenSRF::Utils::JSON->perl2JSON($bib) ); + $r->print( OpenSRF::Utils::JSON->perl2JSON($bib) . "\n" ); next; }