[Koha-patches] [PATCH] Bug 5917 : Trimming leading spaces - Please test it seems to work ok

Chris Cormack chrisc at catalyst.net.nz
Mon Apr 18 01:36:23 CEST 2011


---
 misc/translator/TmplTokenizer.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/misc/translator/TmplTokenizer.pm b/misc/translator/TmplTokenizer.pm
index 77fa1c8..b7a93bc 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;
 }
 
-- 
1.7.1



More information about the Koha-patches mailing list