summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2017-05-06 17:54:24 (GMT)
committerWerner Almesberger <werner@almesberger.net>2017-05-06 17:54:24 (GMT)
commit71f507662cd4fa4bb50cfcfc8e3499aec2c5a7a3 (patch)
tree5385887905bd0493c8437bad4015c3d06d6f4399
parent5d6fd49202baffccedc7a6f5f4dfdf8d47ef6fe2 (diff)
downloadmisc-71f507662cd4fa4bb50cfcfc8e3499aec2c5a7a3.zip
misc-71f507662cd4fa4bb50cfcfc8e3499aec2c5a7a3.tar.gz
misc-71f507662cd4fa4bb50cfcfc8e3499aec2c5a7a3.tar.bz2
bom/dk2pricing.pl (lookup): remove trailing whitespace from description
We had an ugly ^M there.
-rwxr-xr-xbom/dk2pricing.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/bom/dk2pricing.pl b/bom/dk2pricing.pl
index 07e362d..6d69751 100755
--- a/bom/dk2pricing.pl
+++ b/bom/dk2pricing.pl
@@ -121,7 +121,9 @@ sub lookup
# Description
die unless $page =~ /$desc/s;
- unshift(@p, $1);
+ $t = $1;
+ $t =~ s/\s+$//;
+ unshift(@p, $t);
return @p;
}