develooper Front page | perl.perl5.porters | Postings from April 2000

Re: [ID 20000405.021] Pod::Man bug

Thread Previous | Thread Next
From:
Todd C. Miller
Date:
April 23, 2000 17:48
Subject:
Re: [ID 20000405.021] Pod::Man bug
Message ID:
200004240048.e3O0mQ106821@xerxes.courtesan.com
That has some other problems.  For instance, compare the formatted output of
pod2man on perlfaq.pod before and after this patch.  You end up with an
errant character at the end of some lines which results in weird
formatting glitches like the following:

-           o How can I make `\w' match national character sets?
+           o How can I make `744

And nroff (actually groff) complains about things like:
    <standard input>:580: normal or special character expected (got a space)

However, fixing the children() sub in Pod::Parser as you suggest
and applying your patch w/o the empty block workaround *does* behave
better, although it looks like nroff is trying to be smart about
splitting on hyphens so you get the following:

-           o How can I match a locale-smart version of
-           `/[a\-zA\-Z]/'?
+           o How can I match a locale-smart version of `/[a-zA-
+           Z]/'?

This is because the '-' is not escaped with a backslash any more.
We do want a baclslash, just not a \e.

 - todd

Thread Previous | Thread Next


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