[SCM] Debian package checker branch, master, updated. 2.2.9-15-g2a12a51
The following commit has been merged in the master branch:
commit 773dd6379759a221b941fe06ecf800d1acf1a3a3
Author: Russ Allbery <rra@debian.org>
Date: Sun Apr 26 17:40:00 2009 -0700
Use &, <, and > instead of ugly numeric escapes
diff --git a/lib/Lintian/Output.pm b/lib/Lintian/Output.pm
index 7b7888a..7123e49 100644
--- a/lib/Lintian/Output.pm
+++ b/lib/Lintian/Output.pm
@@ -296,7 +296,9 @@ sub print_tag {
if ($self->_do_color) {
if ($self->color eq 'html') {
my $escaped = $tag_info->{tag};
- $escaped =~ s/([<&>])/sprintf("&#%d;", ord($1))/ge;
+ $escaped =~ s/&/&/g;
+ $escaped =~ s/</</g;
+ $escaped =~ s/>/>/g;
$tag .= qq(<span style="color: $tag_color">$escaped</span>)
} else {
$tag .= Term::ANSIColor::colored($tag_info->{tag}, $tag_color);
--
Debian package checker
Reply to: