Skip to content

Commit

Permalink
Merge pull request #1 from gfx/master
Browse files Browse the repository at this point in the history
A tiny fix on UUV warnings
  • Loading branch information
hanabokuro committed Jun 6, 2011
2 parents 0b04b4d + 0417098 commit f4a2c53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Expand Up @@ -54,7 +54,7 @@ sub _pre_Var {
$src = $self->remove_escape_function($src);
$is_raw = 0;
}
if(lc($node->escape) eq 'html'){
if(lc($node->escape || '') eq 'html'){
$node->escape(0);
$is_raw = 0;
}
Expand Down
3 changes: 1 addition & 2 deletions script/html-template-converter.pl
Expand Up @@ -27,7 +27,6 @@

my $template_text;
{ local $/; $template_text = <>; }
my $list = $parser->parse($template_text);
my $tree = $parser->list_to_tree($list);
my $tree = $parser->parse($template_text);
my $new_template_text = $writer->write($tree);
print $new_template_text;
3 changes: 1 addition & 2 deletions script/html-template-validator.pl
Expand Up @@ -12,8 +12,7 @@

eval {
my $parser = HTML::Template::Parser->new;
my $list = $parser->parse($template_text);
my $tree = $parser->list_to_tree($list);
my $tree = $parser->parse($template_text);
};
if($@){
my $error = $@;
Expand Down

0 comments on commit f4a2c53

Please sign in to comment.