From bc85a6042dca1848a23623be5d6612e495121da5 Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 20 Jan 2007 00:08:39 +0000 Subject: strip all blank lines, not just trailing ones --- httemplate/edit/process/quick-charge.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httemplate/edit/process/quick-charge.cgi b/httemplate/edit/process/quick-charge.cgi index a2eba3abc..024a281e0 100644 --- a/httemplate/edit/process/quick-charge.cgi +++ b/httemplate/edit/process/quick-charge.cgi @@ -4,9 +4,9 @@ % % my @description = (); % for ( my $row = 0; exists($param->{"description$row"}); $row++ ) { -% push @description, $param->{"description$row"}; +% push @description, $param->{"description$row"} +% if ($param->{"description$row"} =~ /\S/); % } -% pop @description until (!@description || $description[$#description]); % % $param->{"custnum"} =~ /^(\d+)$/ % or $error .= "Illegal customer number " . $param->{"custnum"} . " "; -- cgit v1.2.1