Bug#519785: perl-modules: pod2usage sometimes deals incorrectly with formatting codes

Niko Tyni ntyni at debian.org
Sun Mar 15 19:55:06 UTC 2009


forwarded 519785 https://rt.cpan.org/Public/Bug/Display.html?id=41136
tag 519785 patch fixed-upstream
thanks

On Sun, Mar 15, 2009 at 03:35:20AM -0400, Dylan Thurston wrote:

> On certain pod files, like the one attached, 'pod2usage -verbose 1'
> deals incorrectly with formatting codes: the formatted strings come
> out at the beginning of the line rather than interpolated.  For
> instance, the attached file becomes
> 
> ------------------------------------------------------------
> Usage:
>     psbind [*option*]... [*input-file-name* [*output-file-name*]]
> 
> Options:
> "psbind""PSBIND"        In addition to specifying the options described below to on the
>         command line, you can put them in an environment variable named .
> 
> *Italic*        Testing

This is [rt.cpan.org #41136] ("Bug 2") and was fixed in
Pod-Parser-1.36. Minimal patch attached. 

With this, the result for your test script is the hopefully expected

------------------------------------------------------------
Usage:
    psbind [*option*]... [*input-file-name* [*output-file-name*]]

Options:
    In addition to specifying the options described below to "psbind" on the
    command line, you can put them in an environment variable named
    "PSBIND".

    Testing *Italic*
------------------------------------------------------------

I'll see about including the fix before Perl 5.10.1, as it seems to be
safe and doesn't break the test suite.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-of-section-in-Pod-Usage-and-over-back.patch
Type: text/x-diff
Size: 0 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20090315/4dd37231/attachment.patch 


More information about the Perl-maintainers mailing list