Skip Menu |

This queue is for tickets about the Pod-Parser CPAN distribution.

Report information
The Basics
Id: 38648
Status: resolved
Priority: 0/
Queue: Pod-Parser

People
Owner: Marek.Rouchal [...] gmx.net
Requestors: dwierenga [...] valueclick.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.35
Fixed in: 1.36



Subject: pod2usage(-verbose => 1) fails with whitespace after SYNOPSIS
If -verbose is set to 1, then pod2usage does not account for whitespace after SYNOPSIS in the pod section. Patch attached. Tested against perl 5.8.5 and Pod::Usage 1.35 on RHEL5.
Subject: usage.diff
--- Usage_ORIG.pm 2008-08-21 16:39:35.022999884 -0700 +++ Usage.pm 2008-08-21 16:37:23.742055153 -0700 @@ -529,7 +529,7 @@ my $opt_re = '(?i)' . '(?:OPTIONS|ARGUMENTS)' . '(?:\s*(?:AND|\/)\s*(?:OPTIONS|ARGUMENTS))?'; - $parser->select( 'SYNOPSIS', $opt_re, "DESCRIPTION/$opt_re" ); + $parser->select( 'SYNOPSIS\s*', $opt_re, "DESCRIPTION/$opt_re" ); } elsif ($opts{"-verbose"} >= 2 && $opts{"-verbose"} != 99) { $parser->select('.*');
CC: dwierenga [...] valueclick.com
Subject: Aw: [rt.cpan.org #38648] pod2usage(-verbose => 1) fails with whitespace after SYNOPSIS
Date: Wed, 3 Sep 2008 15:43:17 +0200 (CEST)
To: bug-pod-parser [...] rt.cpan.org
From: mrouchal [...] arcor.de
I will consider this for the next update - but generally speaking the bug is on the POD author side - trailing whitespace is illegal. -Marek Show quoted text
----- Original Nachricht ---- Von: Dan Wierenga via RT <bug-Pod-Parser@rt.cpan.org> An: undisclosed-recipients:; Datum: 22.08.2008 01:44 Betreff: [rt.cpan.org #38648] pod2usage(-verbose => 1) fails with whitespace after SYNOPSIS
> Thu Aug 21 19:44:43 2008: Request 38648 was acted upon. > Transaction: Ticket created by dwierenga > Queue: Pod-Parser > Subject: pod2usage(-verbose => 1) fails with whitespace after SYNOPSIS > Broken in: 1.35 > Severity: Normal > Owner: Nobody > Requestors: dwierenga@valueclick.com > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=38648 > > > > If -verbose is set to 1, then pod2usage does not account for whitespace > after SYNOPSIS in the pod section. > > Patch attached. > > Tested against perl 5.8.5 and Pod::Usage 1.35 on RHEL5. >
Will be part of Pod-Parser-1.36 -Marek