From: Miek Gieben Date: Tue, 26 Apr 2005 09:22:19 +0000 (+0000) Subject: improved layout of the manpage X-Git-Tag: release-0.50~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa8faeb5e8efd58d7d5e7448cb0b6aeda8b89d77;p=thirdparty%2Fldns.git improved layout of the manpage --- diff --git a/doc/doxyparse.pl b/doc/doxyparse.pl index 118247ec..cf8b24ca 100755 --- a/doc/doxyparse.pl +++ b/doc/doxyparse.pl @@ -114,8 +114,9 @@ while(<>) { $key =~ s/^\*//; $return = '*' . $return; } - $description =~ s/\\param\[in\][ \t]//g; - $description =~ s/\\//g; + $description =~ s/\\param\[in\][ \t]*(\w+)[ \t]+/\\fB$1\\fR: /g; + $description =~ s/\\param\[out\][ \t]*(\w+)[ \t]+/\\fB$1\\fR: /g; + $description =~ s/\\return[ \t]*/Returns /g; $description{$key} = $description; $api{$key} = $api; @@ -150,7 +151,8 @@ foreach (keys %manpages) { } print MAN "\n.SH DESCRIPTION\n"; foreach $function (@$a) { - print MAN "\\fI", $function, "\\fR", ":"; + print MAN ".HP\n"; + print MAN "\\fI", $function, "\\fR", ":"; print MAN $description{$function}; print MAN "\n.PP\n"; }