strip all blank lines, not just trailing ones
authorjeff <jeff>
Sat, 20 Jan 2007 00:08:39 +0000 (00:08 +0000)
committerjeff <jeff>
Sat, 20 Jan 2007 00:08:39 +0000 (00:08 +0000)
httemplate/edit/process/quick-charge.cgi

index a2eba3a..024a281 100644 (file)
@@ -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"} . "  ";