chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deb63b9
)
Commods: strip whitespace from ends of stall names in tsvs (!)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 6 Jan 2012 01:09:21 +0000
(
01:09
+0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 6 Jan 2012 01:09:21 +0000
(
01:09
+0000)
yarrg/Commods.pm
patch
|
blob
|
history
diff --git
a/yarrg/Commods.pm
b/yarrg/Commods.pm
index f3ae56fcbd0e4827c2168f6ebd3f15cdc070a6b2..42670342372f8dfbc20f24d063e74d796c041f4b 100644
(file)
--- a/
yarrg/Commods.pm
+++ b/
yarrg/Commods.pm
@@
-425,6
+425,7
@@
sub check_tsv_line ($$) {
$l !~ m/\P{IsPrint}/ or &$bad_data('nonprinting char(s)');
my @v= split /\t/, $l, -1;
@v==6 or &$bad_data('wrong number of fields');
+ $v[1] =~ s/^\s+//; $v[1] =~ s/\s+$//; # ooo don't check :-(
my ($commod,$stall) = @v;
!keys %commods or