[Po4a-devel]Sgml.pm: Fix handling of the debug option

Francois Gouget fgouget@codeweavers.com
Tue, 24 May 2005 14:11:18 +0200


This is a multi-part message in MIME format.
--------------000200050008060708030800
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

(Resending because I was not subscribed from this email address. I 
apologize for the inconvenience if it gets in twice)


Sgml.pm's debug option is a space separated list of 'channels' to print 
debug information for. But its value was not being split which caused 
the option not to work.

Changelog:

  * lib/Locale/Po4a/Sgml.pm

    Francois Gouget <fgouget@codeweavers.com>
    The debug option is a space separated list of channels to print 
information for. So we must
split it to set $debug.

-- 
Francois Gouget
fgouget@codeweavers.com


--------------000200050008060708030800
Content-Type: text/plain;
 name="po4a-20050524-debug.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="po4a-20050524-debug.diff"

Index: lib/Locale/Po4a/Sgml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Sgml.pm,v
retrieving revision 1.55
diff -u -p -r1.55 Sgml.pm
--- lib/Locale/Po4a/Sgml.pm	21 May 2005 18:42:21 -0000	1.55
+++ lib/Locale/Po4a/Sgml.pm	24 May 2005 11:47:01 -0000
@@ -217,7 +217,7 @@ sub initialize {
 	}
     }
     if ($options{'debug'}) {
-	foreach ($options{'debug'}) {
+	foreach (split /\s+/, $options{'debug'}) {
 	    $debug{$_} = 1;
 	}
     }

--------------000200050008060708030800--