remote cl/lf from values master
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 26 Aug 2021 13:50:25 +0000 (15:50 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 26 Aug 2021 13:50:25 +0000 (15:50 +0200)
get.pl

diff --git a/get.pl b/get.pl
index 54f9994..1197f2f 100755 (executable)
--- a/get.pl
+++ b/get.pl
@@ -31,7 +31,9 @@ while(<>) {
        foreach my $item ( @{ $json->{items} } ) {
                warn "## item = ",dump( $item );
                foreach my $col ( @columns ) {
        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;
                }
        }
 
                }
        }