Delete leading and ending space in description field.

This commit is contained in:
Wolfram Schneider 1998-06-24 12:50:16 +00:00
parent b0216dc12b
commit 4baece3b3a
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=2990
2 changed files with 6 additions and 2 deletions

View file

@ -6,7 +6,7 @@
# Format: <url> | <description>
# 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) {

View file

@ -6,7 +6,7 @@
# Format: <url> | <description>
# 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) {