[Po4a-devel]Re: [Po4a-commits] po4a/lib/Locale/Po4a Man.pm,1.58,1.59

Martin Quinson martin.quinson@imag.fr
Sun, 14 Nov 2004 22:36:40 +0100


--l76fUT7nc3MelDdI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Nov 12, 2004 at 12:29:20PM +0000, Nicolas FRAN??OIS wrote:
> -	    do_paragraph($self,$paragraph,$wrapped_mode);
> -	    $paragraph="";
> +	    if ($paragraph) {
> +	        do_paragraph($self,$paragraph,$wrapped_mode);
> +	        $paragraph="";
> +	    }

If a paragraph consists in the string "0", it will return false. Prefer
testing the length() of the string.

It used to bring issues in Pod.pm, for example.

Thanks for your time,
Mt.

--l76fUT7nc3MelDdI
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBl8/oSJAMsfOxudIRAnJ2AJ9K0+VOriJsUycbu33cC1b7JsR10gCdF39K
8sKMescBzbhAyPwgWJRHwak=
=p6G6
-----END PGP SIGNATURE-----

--l76fUT7nc3MelDdI--