From 5574c350d4d7c53bc082e3939e1116432dd5f0b6 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Mon, 18 Apr 2011 10:39:25 +1200 Subject: [PATCH] Bug 5917 : Trimming leading spaces - Please test it seems to work ok Signed-off-by: Chris Cormack --- misc/translator/TmplTokenizer.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/translator/TmplTokenizer.pm b/misc/translator/TmplTokenizer.pm index 77fa1c8899..b7a93bc91c 100644 --- a/misc/translator/TmplTokenizer.pm +++ b/misc/translator/TmplTokenizer.pm @@ -233,6 +233,7 @@ sub string_canon ($) { my $s = shift; # Fold all whitespace into single blanks $s =~ s/\s+/ /g; + $s =~ s/^\s+//g; return $s; } -- 2.39.5