From 4baece3b3a689b73d95f7e0741e5b48dadd04f68 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 24 Jun 1998 12:50:16 +0000 Subject: [PATCH] Delete leading and ending space in description field. --- data/site.pl | 4 +++- en/search/site.pl | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data/site.pl b/data/site.pl index a0968e3ee8..eed656de6a 100755 --- a/data/site.pl +++ b/data/site.pl @@ -6,7 +6,7 @@ # Format: | # An empty url begin a new section # -# $Id: site.pl,v 1.1 1998-06-05 10:07:17 wosch Exp $ +# $Id: site.pl,v 1.2 1998-06-24 12:50:16 wosch Exp $ # print a dl list @@ -25,6 +25,8 @@ sub dl { chop; ($url, $description) = split('\|'); + $description =~ s/^\s+//; + $description =~ s/\s+$//; # new section if (!$url && $description) { diff --git a/en/search/site.pl b/en/search/site.pl index a0968e3ee8..eed656de6a 100755 --- a/en/search/site.pl +++ b/en/search/site.pl @@ -6,7 +6,7 @@ # Format: | # An empty url begin a new section # -# $Id: site.pl,v 1.1 1998-06-05 10:07:17 wosch Exp $ +# $Id: site.pl,v 1.2 1998-06-24 12:50:16 wosch Exp $ # print a dl list @@ -25,6 +25,8 @@ sub dl { chop; ($url, $description) = split('\|'); + $description =~ s/^\s+//; + $description =~ s/\s+$//; # new section if (!$url && $description) {