From ff55c14b1f03015d95af6203edec4595bf6b583f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 17 Jul 2005 10:47:36 +0000 Subject: [PATCH] Use/support <_> and . --- html/templates/player.tmpl | 6 +++--- html/templates/show-tournament.tmpl | 12 ++++++------ intl/Sesse::GettextizeTemplates.pm | 1 + 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/html/templates/player.tmpl b/html/templates/player.tmpl index b41aeb7..c136f34 100644 --- a/html/templates/player.tmpl +++ b/html/templates/player.tmpl @@ -3,10 +3,10 @@
diff --git a/html/templates/show-tournament.tmpl b/html/templates/show-tournament.tmpl index 291ccda..87d5518 100644 --- a/html/templates/show-tournament.tmpl +++ b/html/templates/show-tournament.tmpl @@ -3,12 +3,12 @@
diff --git a/intl/Sesse::GettextizeTemplates.pm b/intl/Sesse::GettextizeTemplates.pm index ec734e0..f5c97ff 100644 --- a/intl/Sesse::GettextizeTemplates.pm +++ b/intl/Sesse::GettextizeTemplates.pm @@ -11,6 +11,7 @@ sub textblock { my ($self, $text) = @_; $text =~ s/(<(h[1-6]|p|td|th|title|input|span|li|_)[^>]*>)(.*?)(<\/\2>)/$1.gettext($3).$4/seg; + $text =~ s/<\/?_>//g; return $self->SUPER::textblock($text); } -- 2.39.2