New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pod::Man bug #1786
Comments
From @millertPod::Man (and thus pod2man) generates man pages with a syntax error. pod2man will generate: Note the extraneous backslash before the relative font size change. Perl Info
|
From [Unknown Contact. See original ticket]Todd C Miller <Todd.Miller@courtesan.com> writes:
That was an annoying one. Thanks for the catch. Could you try this patch diff -u -r1.2 Man.pm + # C<> needs to fix hyphens and underscores but can't apply guesswork and @@ -576,8 +591,6 @@ |
From @millertYup, seems to do the trick. - todd In message <ylr9cgaqll.fsf@windlord.stanford.edu>
|
From @millertLooks like there is still a problem. If you use: =pod =head1 SYNOPSIS foo C<-v> =cut - todd In message <ylr9cgaqll.fsf@windlord.stanford.edu>
|
From [Unknown Contact. See original ticket]Todd C Miller <Todd.Miller@courtesan.com> writes:
Which backslash? windlord:~> nroff -man - | uniq That looks exactly right to me.... Maybe your nroff is broken? |
From @millertIn message <ylaeilpu23.fsf@windlord.stanford.edu>
Sorry, that must have been a mispaste. What pod2man produces is: which does have the backslash in the formatted output. The - todd |
From [Unknown Contact. See original ticket]Todd C Miller <Todd.Miller@courtesan.com> writes:
Ah! I see. Brad, this bit of code looks odd to me, from Pod::InputObjects in sub children { Shouldn't that be "(@_ == 1 and ref $_[0]) ? @{ @_ } : @_"? I believe Todd, try this patch. I wasn't properly tagging the pre-processed text --- Man.pm 2000/04/09 09:23:54 1.3 # C<>, L<>, X<>, and E<> don't apply guesswork to their contents. |
From @millertThat has some other problems. For instance, compare the formatted output of - o How can I make `\w' match national character sets? And nroff (actually groff) complains about things like: However, fixing the children() sub in Pod::Parser as you suggest - o How can I match a locale-smart version of This is because the '-' is not escaped with a backslash any more. - todd |
From [Unknown Contact. See original ticket]Todd C Miller <Todd.Miller@courtesan.com> writes:
*grumble* Okay, this is good, actually. It made me take a close look at this and --- Man.pm 2000/03/19 07:30:13 1.2 ############################################################################ - # C<>, L<>, X<>, and E<> don't apply guesswork to their contents. # Handle E<> escapes. |
From @millertLooks good to me. Both C<-i> and C<I<FOO BAR>> act the way they ought. - todd In message <yl66t86y7p.fsf@windlord.stanford.edu>
|
From [Unknown Contact. See original ticket]Russ Allbery <rra@stanford.edu> wrote
Do you *really* want to operate on @1 ? :-) Perhaps you mean "(@_ == 1 and ref $_[0]) ? @{$_[0}} : @_" ? Mike Guy |
Migrated from rt.perl.org#3042 (status was 'resolved')
Searchable as RT3042$
The text was updated successfully, but these errors were encountered: