build: fix corner case when extracting i18n tokens from templates

This commit is contained in:
Jo-Philipp Wich 2009-11-01 01:05:28 +00:00
parent 4ad686d732
commit e3ac0fd78d

View file

@ -24,6 +24,7 @@ sub dec_lua_str
sub dec_tpl_str sub dec_tpl_str
{ {
my $s = shift; my $s = shift;
$s =~ s/-$//;
$s =~ s/[\s\n]+/ /g; $s =~ s/[\s\n]+/ /g;
$s =~ s/^ //; $s =~ s/^ //;
$s =~ s/ $//; $s =~ s/ $//;