X-Git-Url: https://git.deb.at/?a=blobdiff_plain;ds=inline;f=lib%2FPackages%2FCGI.pm;h=cc92e64d6f748c6496c7e0205f7df733a62692a7;hb=2e8966fc3d9467e5e8b5e4186af347dc6e30f899;hp=cac499fbc45658ddcf32663f9b20fc46592b2d01;hpb=08852aab550de858d4e4956ea357dbc3ae713a26;p=deb%2Fpackages.git diff --git a/lib/Packages/CGI.pm b/lib/Packages/CGI.pm index cac499f..cc92e64 100644 --- a/lib/Packages/CGI.pm +++ b/lib/Packages/CGI.pm @@ -30,12 +30,12 @@ sub debug { sub msg { push @msgs, $_[0]; } -sub notes { +sub note { push @notes, [ @_ ]; } sub print_errors { return unless @fatal_errors || @errors; - print '
ERROR: $_
"; } @@ -43,7 +43,7 @@ sub print_errors { } sub print_debug { return unless $debug && @debug; - print ''; foreach (@debug) { print "$_\n"; @@ -52,7 +52,7 @@ sub print_debug { } sub print_hints { return unless @hints; - print ''; + print ''; foreach (@hints) { print "$_
"; } @@ -66,15 +66,14 @@ sub print_msgs { sub print_notes { foreach (@notes) { my ( $title, $note ) = @$_; - my $str = ""; + print ''; if ($note) { - $str .= ""; } }$title
"; + print "$title
"; } else { $note = $title; } - $str .= "$note
"; - return $str; + print "$note