[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Seeking sponsor for Emilda and related packages



David Everly <deckrider@myrealbox.com> writes:

> Ok, all of this is from Debian/Sarge, so if there is a new version, I
> haven't tried it.

> Here are the lines that lintian didn't like:

Ah, yes, pod2man wasn't escaping hyphens in verbatim blocks.  It also
wasn't adding a bit of space between the two characters of __.  This is
indeed one of the things that's already fixed in CVS and is waiting on the
next Pod::Simple release to be released.

This will be fixed in the next release, although unfortunately it will
take a little while for that to percolate into Perl.  Note that the
effects of this are probably not obvious unless one uses troff instead of
nroff, and may not be that apparent even then (the hyphens will be a
little shorter than they should be).  This is mainly only a problem in
filled text, where unescaped hyphens are considered potential word breaks
for wrapping; they're not as much of a problem in verbatim text.

The following simple patch will fix this in Pod::Man, although I doubt
it's worth trying to get it into Debian's Perl.

--- Man.pm.orig 2004-07-25 20:10:01.000000000 -0700
+++ Man.pm      2004-07-25 20:10:19.000000000 -0700
@@ -517,6 +517,7 @@
     my $lines = tr/\n/\n/;
     1 while s/^(.*?)(\t+)/$1 . ' ' x (length ($2) * 8 - length ($1) % 8)/me;
     s/\\/\\e/g;
+    s/-/\\-/g;
     s/^(\s*\S)/'\&' . $1/gme;
     $self->makespace;
     $self->output (".Vb $lines\n$_.Ve\n");

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>



Reply to: