projects
/
crossbi-get
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
be8740b
)
remote cl/lf from values
master
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 26 Aug 2021 13:50:25 +0000
(15:50 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 26 Aug 2021 13:50:25 +0000
(15:50 +0200)
get.pl
patch
|
blob
|
history
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;
}
}
}
}