X-Git-Url: http://git.rot13.org/?p=crossbi-get;a=blobdiff_plain;f=get.pl;h=1197f2fe93e4da16d40464cf305a07d99f63fa76;hp=54f99941b26870ae57ec99744eab88494cd02bf7;hb=ca8ba7959d45bd654c93e03648626f47d4ae8f57;hpb=be8740bce23a1511bdef4e973c0ca850e5440d35 diff --git a/get.pl b/get.pl index 54f9994..1197f2f 100755 --- a/get.pl +++ b/get.pl @@ -31,7 +31,9 @@ while(<>) { foreach my $item ( @{ $json->{items} } ) { warn "## item = ",dump( $item ); foreach my $col ( @columns ) { - push @$row, $item->{$col}; + my $d = $item->{$col}; + $d =~ s/[\r\n\s]+/ /gs; + push @$row, $d; } }