develooper Front page | perl.perl5.porters | Postings from June 2008

Re: [perl #53974] pod2man nroff =head2 with two C<> blocks

Thread Previous
From:
Steve Peters
Date:
June 2, 2008 05:23
Subject:
Re: [perl #53974] pod2man nroff =head2 with two C<> blocks
Message ID:
fd7a59d30806020523i3c819a57m9cf5c9ba697e7dc1@mail.gmail.com
On Sat, May 10, 2008 at 7:51 PM, via RT Kevin Ryde
<perlbug-followup@perl.org> wrote:
> # New Ticket Created by  Kevin Ryde
> # Please include the string:  [perl #53974]
> # in the subject line of all future correspondence about this issue.
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=53974 >
>
>
> The file foo.pod below processed with
>
>        pod2man foo.pod | man -l -
>
> produces only half the heading line in bold
>
>        "one" and "two"
>        ^^^^^ ^^^^^^^^^
>        |     |
>        bold   \ not bold
>
> the roff which comes out is
>
>        .ie n .Sh """one""\fP and \f(CW""two"""
>
> and I guess the \fP is turning off the bold set in .Sh.
>
> I wonder if the mangling regexps in switchquotes() of Man.pm should be
> non-greedy, per below.  Unless that would hurt nested fontification even
> worse or something ...
>
>

The attached patch was applied with the upgrade to podlators-2.1.0 in
change #33987.

Thanks,

Steve Peters
steve@fisharerojo.org

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About