Bug#661648: libhtml-formattext-withlinks: Mistake in man-description of parse()
Jörg Sommer
joerg at alea.gnuu.de
Tue Feb 28 16:46:45 UTC 2012
Package: libhtml-formattext-withlinks-perl
Version: 0.14-1
Severity: minor
Hi,
the manual page says:
parse
my $text = $f->parse($html);
Takes some HTML and returns it as text. Returns undef on error.
Will also return undef if you don't pass it undef. Returns an empty
string if passed an empty string.
and the code contains:
sub parse {
my $self = shift;
my $text = shift;
return undef unless defined $text;
return '' if $text eq '';
The negation for undef is wrong: »Will also return undef if you pass
it undef.« The don't must be removed.
Bye, Jörg.
-- System Information:
Debian Release: unstable/experimental
APT prefers unstable
APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 3.3.0-rc3-00279-g8e4baad
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libhtml-formattext-withlinks-perl depends on:
ii libhtml-format-perl 2.10-1
ii libhtml-tree-perl 4.2-1
ii liburi-perl 1.59-1
ii perl 5.14.2-7
libhtml-formattext-withlinks-perl recommends no packages.
libhtml-formattext-withlinks-perl suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature http://en.wikipedia.org/wiki/OpenPGP
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120228/db9f05e6/attachment.pgp>
More information about the pkg-perl-maintainers
mailing list