--- test/html-webhacc/cc.cgi 2007/07/16 08:38:48 1.10
+++ test/html-webhacc/cc.cgi 2007/07/16 10:55:11 1.11
@@ -94,16 +94,16 @@
my $onerror = sub {
my (%opt) = @_;
- my ($cls, $msg) = get_text ($opt{type}, $opt{level});
+ my ($type, $cls, $msg) = get_text ($opt{type}, $opt{level});
if ($opt{column} > 0) {
print STDOUT qq[
Line $opt{line} column $opt{column}\n];
} else {
$opt{line} = $opt{line} - 1 || 1;
print STDOUT qq[Line $opt{line}\n];
}
- $opt{type} =~ tr/ /-/;
- $opt{type} =~ s/\|/%7C/g;
- $msg .= qq[ [Description]];
+ $type =~ tr/ /-/;
+ $type =~ s/\|/%7C/g;
+ $msg .= qq[ [Description]];
print STDOUT qq[$msg\n];
};
@@ -185,11 +185,10 @@
require Whatpm::ContentChecker;
my $onerror = sub {
my %opt = @_;
- my ($cls, $msg) = get_text ($opt{type}, $opt{level});
- $opt{type} = $opt{level} . ':' . $opt{type} if defined $opt{level};
- $opt{type} =~ tr/ /-/;
- $opt{type} =~ s/\|/%7C/g;
- $msg .= qq[ [Description]];
+ my ($type, $cls, $msg) = get_text ($opt{type}, $opt{level});
+ $type =~ tr/ /-/;
+ $type =~ s/\|/%7C/g;
+ $msg .= qq[ [Description]];
print STDOUT qq[] . get_node_link ($opt{node}) .
qq[\n], $msg, "\n";
};
@@ -246,6 +245,7 @@
for (@$_) {
$_->{id} = refaddr $_->{element} if defined $_->{element};
delete $_->{element};
+ $_->{is_header} = $_->{is_header} ? 1 : 0;
}
}
}
@@ -496,13 +496,13 @@
$msg =~ s{\$([0-9]+)}{
defined $arg[$1] ? htescape ($arg[$1]) : '(undef)';
}ge;
- return ($Msg->{$type}->[0], $msg);
+ return ($type, $Msg->{$type}->[0], $msg);
} elsif ($type =~ s/:([^:]*)$//) {
unshift @arg, $1;
redo;
}
}
- return ('', htescape ($_[0]));
+ return ($type, '', htescape ($_[0]));
} # get_text
}
@@ -669,4 +669,4 @@
=cut
-## $Date: 2007/07/16 08:38:48 $
+## $Date: 2007/07/16 10:55:11 $