From: Dobrica Pavlinusic Date: Thu, 26 Aug 2021 13:50:25 +0000 (+0200) Subject: remote cl/lf from values X-Git-Url: http://git.rot13.org/?p=crossbi-get;a=commitdiff_plain;h=ca8ba7959d45bd654c93e03648626f47d4ae8f57;hp=be8740bce23a1511bdef4e973c0ca850e5440d35 remote cl/lf from values --- 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; } }