From: Mike Taylor Date: Tue, 7 Nov 2006 17:18:29 +0000 (+0000) Subject: Correct HTML-encoding of debug output in dom_add_element() X-Git-Tag: CPAN-v1.02~54^2~770 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=86850fba8c3ad72fa3f43514e4cee96d631da98f;p=irspy-moved-to-github.git Correct HTML-encoding of debug output in dom_add_element() Comment out this debugging output anyway. --- diff --git a/lib/ZOOM/IRSpy/Utils.pm b/lib/ZOOM/IRSpy/Utils.pm index e52747f..7fa27dc 100644 --- a/lib/ZOOM/IRSpy/Utils.pm +++ b/lib/ZOOM/IRSpy/Utils.pm @@ -1,4 +1,4 @@ -# $Id: Utils.pm,v 1.5 2006-11-01 11:46:10 mike Exp $ +# $Id: Utils.pm,v 1.6 2006-11-07 17:18:29 mike Exp $ package ZOOM::IRSpy::Utils; @@ -126,9 +126,9 @@ sub dom_add_element { warn scalar(@nodes), " nodes match parent '$ppath'" if @nodes > 1; my $node = $nodes[0]; - if (1) { + if (0) { my $text = xml_encode(inheritance_tree($xc)); - $text =~ s/\n/$1/sg; + $text =~ s/\n/$&/sg; print "
$text
\n"; } }