aboutsummaryrefslogtreecommitdiffstats
path: root/make-authors-short.pl
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-09-06 20:25:36 +0000
committerGuy Harris <guy@alum.mit.edu>2004-09-06 20:25:36 +0000
commit83505e59c60695636741cae80ff2f253187d4b67 (patch)
tree2bd1a088131150ab47abc52c68a7f7dd32880f87 /make-authors-short.pl
parente2009b2bf89a692443c742d2df8cc99d7daa5a14 (diff)
From Graeme Hewson: wrap the authors list in ".nf"/".fi" in the man page
and "<pre>"/"</pre>", to make sure it doesn't get word-wrapped (the "start each line with a blank" trick doesn't work on current versions of pod2html). svn path=/trunk/; revision=11919
Diffstat (limited to 'make-authors-short.pl')
-rwxr-xr-xmake-authors-short.pl11
1 files changed, 10 insertions, 1 deletions
diff --git a/make-authors-short.pl b/make-authors-short.pl
index 7244ad7d85..8c8559fafc 100755
--- a/make-authors-short.pl
+++ b/make-authors-short.pl
@@ -10,6 +10,13 @@ use strict;
my $subinfo=0;
my $nextline;
+print "=for html <pre>\n\n";
+print "=for man .nf\n\n";
+
+$_ = <>;
+s/\xef\xbb\xbf//; # Skip UTF-8 byte order mark
+print unless /^\n/;
+
while (<>) {
if (/(.*){/) {
$subinfo = 1;
@@ -22,7 +29,9 @@ while (<>) {
} elsif ($subinfo == 1) {
next;
} else {
- s/^$/ /; # Make it a verbatim paragraph
print;
}
}
+
+print "\n=for html </pre>\n";
+print "\n=for man .fi\n";