]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
improved layout of the manpage
authorMiek Gieben <miekg@NLnetLabs.nl>
Tue, 26 Apr 2005 09:22:19 +0000 (09:22 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Tue, 26 Apr 2005 09:22:19 +0000 (09:22 +0000)
doc/doxyparse.pl

index 118247ec2273e51bc9867388fa10a9ff0330144e..cf8b24ca4368188084142f363b14e4a107b2d09d 100755 (executable)
@@ -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";
        }