[Po4a-devel][CVS] po4a/lib/Locale/Po4a TransTractor.pm,1.29,1.30

Martin Quinson po4a-devel@lists.alioth.debian.org
Sat, 07 Aug 2004 02:32:53 +0000


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv31940

Modified Files:
	TransTractor.pm 
Log Message:
Allow extra space after the semi colon separating fields in addendum headers (maybe close debian's #263299, unclear report)

Index: TransTractor.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/TransTractor.pm,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- TransTractor.pm	7 Aug 2004 02:15:07 -0000	1.29
+++ TransTractor.pm	7 Aug 2004 02:32:50 -0000	1.30
@@ -488,7 +488,7 @@
 	goto END_PARSE_ADDFILE;
     }
     foreach my $part (split(/;/,$header)) {
-	unless ($part =~ m/^([^=]*)=(.*)$/) {
+	unless ($part =~ m/^\s*([^=]*)=(.*)$/) {
 	    warn sprintf(dgettext("po4a","Syntax error in Po4a header of %s, near \"%s\""),
 			 $filename,$part)."\n";
 	    goto END_PARSE_ADDFILE;