Closed p5pRT closed 21 years ago
pod2man misformats the entry for $" in perlvar.pod
$LIST_SEPARATOR $"" This is like "$\," except that it applies to array and slice values interpolated into a double-quoted string (or similar interpreted string). Default is a space. (Mnemonic: obvious\, I think.)
The output from pod2man looks like this:
..IP "$LIST_SEPARATOR" 8 ..IX Item "$LIST_SEPARATOR" ..PD 0 ..IP "$""" 8 ..PD This is like \f(CW$\,\fR except that it applies to array and slice values interpolated into a double-quoted string (or similar interpreted string). Default is a space. (Mnemonic: obvious\, I think.)
pod2text gets it right:
$LIST_SEPARATOR $" This is like $\, except that it applies to array and slice values interpolated into a double-quoted string (or similar interpreted string). Default is a space. (Mnemonic: obvious\, I think.)
pod2html screws it up:
\
$\,\
\ except that it applies to array and slice values
$` and $' are formatted correctly by all three.
I figure this is not a low severity bug because it's not just misformatting - the text as output is erroneous. I'm not sure if it should count as high\, because it's actually the subject of the paragraph which contains the error\, rather than some example code.
Nicholas Clark \nick@​ccl4\.org writes:
pod2man misformats the entry for $" in perlvar.pod
$LIST\_SEPARATOR $"" This is like "$\," except that it applies to array and slice values interpolated into a double\-quoted string \(or similar interpreted string\)\. Default is a space\. \(Mnemonic​: obvious\, I think\.\)
The output from pod2man looks like this:
.IP "$LIST_SEPARATOR" 8 .IX Item "$LIST_SEPARATOR" .PD 0 .IP "$""" 8 .PD This is like \f(CW$\,\fR except that it applies to array and slice values interpolated into a double-quoted string (or similar interpreted string). Default is a space. (Mnemonic: obvious\, I think.)
This nroff looks correct to me\, and both Solaris nroff and GNU groff 1.17.2 renders this with only a single quote in the formatted output. (Escaping of double-quotes in nroff is a black art\, but the above doubles the contained quote\, which is supposed to be the right thing to do.)
I see you're on Linux; what version of groff are you using?
-- Russ Allbery (rra@stanford.edu) \<http://www.eyrie.org/~eagle/>
On Fri\, Jun 07\, 2002 at 12:27:34PM -0700\, Russ Allbery wrote:
Nicholas Clark \nick@​ccl4\.org writes:
pod2man misformats the entry for $" in perlvar.pod
$LIST\_SEPARATOR $"" This is like "$\," except that it applies to array and slice values interpolated into a double\-quoted string \(or similar interpreted string\)\. Default is a space\. \(Mnemonic​: obvious\, I think\.\)
The output from pod2man looks like this:
.IP "$LIST_SEPARATOR" 8 .IX Item "$LIST_SEPARATOR" .PD 0 .IP "$""" 8 .PD This is like \f(CW$\,\fR except that it applies to array and slice values interpolated into a double-quoted string (or similar interpreted string). Default is a space. (Mnemonic: obvious\, I think.)
This nroff looks correct to me\, and both Solaris nroff and GNU groff 1.17.2 renders this with only a single quote in the formatted output. (Escaping of double-quotes in nroff is a black art\, but the above doubles the contained quote\, which is supposed to be the right thing to do.)
I see you're on Linux; what version of groff are you using?
Offhand I don't know\, as the machine is my desktop at work\, and I'm not there until Monday. (bah. Monday. No bank holidays next week) It's Redhat 7.2\, if that helps someone else answer it [As it's Redhat\, have they shipped some dodgy development groff to add to their gcc crimes?]
Nicholas Clark -- Even better than the real thing: http://nms-cgi.sourceforge.net/
On Fri\, Jun 07\, 2002 at 09:33:34PM +0100\, Nicholas Clark wrote:
On Fri\, Jun 07\, 2002 at 12:27:34PM -0700\, Russ Allbery wrote:
Nicholas Clark \nick@​ccl4\.org writes:
pod2man misformats the entry for $" in perlvar.pod
$LIST\_SEPARATOR $"" This is like "$\," except that it applies to array and slice values interpolated into a double\-quoted string \(or similar interpreted string\)\. Default is a space\. \(Mnemonic​: obvious\, I think\.\)
The output from pod2man looks like this:
.IP "$LIST_SEPARATOR" 8 .IX Item "$LIST_SEPARATOR" .PD 0 .IP "$""" 8 .PD This is like \f(CW$\,\fR except that it applies to array and slice values interpolated into a double-quoted string (or similar interpreted string). Default is a space. (Mnemonic: obvious\, I think.)
This nroff looks correct to me\, and both Solaris nroff and GNU groff 1.17.2 renders this with only a single quote in the formatted output. (Escaping of double-quotes in nroff is a black art\, but the above doubles the contained quote\, which is supposed to be the right thing to do.)
I see you're on Linux; what version of groff are you using?
Offhand I don't know\, as the machine is my desktop at work\, and I'm not there until Monday. (bah. Monday. No bank holidays next week) It's Redhat 7.2\, if that helps someone else answer it
[As it's Redhat\, have they shipped some dodgy development groff to add to their gcc crimes?]
I do have the same problem as well\, using Linux\, on several distros of Linux\, with different versions of groff.
On a slackware distribution: $ groff --version GNU groff version 1.17 Copyright (C) 1989-2001 Free Software Foundation\, Inc. GNU groff comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of groff and its subprograms under the terms of the GNU General Public License. For more information about these matters\, see the file named COPYING.
called subprograms:
GNU troff (groff) version 1.17 GNU grops (groff) version 1.17
On Rock linux: $ groff -v GNU troff version 1.16.1
Unknown distro: $ groff --version GNU groff version 1.17.2 Copyright (C) 1989-2001 Free Software Foundation\, Inc. GNU groff comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of groff and its subprograms under the terms of the GNU General Public License. For more information about these matters\, see the file named COPYING.
called subprograms:
GNU troff (groff) version 1.17.2 GNU grops (groff) version 1.17.2
Also on OpenBSD: $ groff -v GNU troff version 1.15
Abigail
Abigail \abigail@​foad\.org writes:
On Fri\, Jun 07\, 2002 at 09:33:34PM +0100\, Nicholas Clark wrote:
.IP "$LIST_SEPARATOR" 8 .IX Item "$LIST_SEPARATOR" .PD 0 .IP "$""" 8 .PD This is like \f(CW$\,\fR except that it applies to array and slice values interpolated into a double-quoted string (or similar interpreted string). Default is a space. (Mnemonic: obvious\, I think.)
I do have the same problem as well\, using Linux\, on several distros of Linux\, with different versions of groff.
Are you seeing the problem with the above roff\, or with the final man page? If the latter\, could you try just the above in isolation\, or the following bit of POD?
=head1 Test
=over 4
=item $"
Blah.
=back
I'm trying to track down where the problem might be\, since I can't reproduce it.
-- Russ Allbery (rra@stanford.edu) \<http://www.eyrie.org/~eagle/>
On Mon\, Jun 10\, 2002 at 02:24:46PM -0700\, Russ Allbery wrote:
Are you seeing the problem with the above roff\, or with the final man page? If the latter\, could you try just the above in isolation\, or the following bit of POD?
=head1 Test =over 4 =item $" Blah\. =back
I'm trying to track down where the problem might be\, since I can't reproduce it.
perldoc w/ perl5.005_03:
Test $"""" Blah.
perldoc w/ perl5.6.1:
Test $"" Blah.
perldoc w/ perl5.7.3:
Test $" Blah.
Ronald
Ronald J Kimball \rjk@​linguist\.thayer\.dartmouth\.edu writes:
perldoc w/ perl5.005_03:
Test $"""" Blah.
perldoc w/ perl5.6.1:
Test $"" Blah.
perldoc w/ perl5.7.3:
Test $" Blah.
Yes... this is exactly what I'd expect\, since this *used* to be a bug\, and I fixed it in the latest version (which is in the release candidates and the 5.7.x testing releases). But I thought that bug report was from the latest version of Perl....
-- Russ Allbery (rra@stanford.edu) \<http://www.eyrie.org/~eagle/>
As far as I can tell this was definitely fixed for 5.8.0...?
@jhi - Status changed from 'open' to 'resolved'
Migrated from rt.perl.org#9480 (status was 'resolved')
Searchable as RT9480$