]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
correctly :-) break the manual pages
authorMiek Gieben <miekg@NLnetLabs.nl>
Tue, 26 Apr 2005 13:25:19 +0000 (13:25 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Tue, 26 Apr 2005 13:25:19 +0000 (13:25 +0000)
doc/doxyparse.pl
ldns/error.h

index fa40b6816853999d8a5dc940074779556e5dc778..8829b4f3684ac38e4eb6132f6804f1358d4f006c 100755 (executable)
@@ -100,8 +100,8 @@ while(<>) {
        if ($state == 1) {
                # inside doxygen 
                s/^[ \t]*\*[ \t]*//;
-               #$description = $description . "\n" . $_;
-               $description = $description . "\n.br\n" . $_;
+               $description = $description . "\n" . $_;
+               #$description = $description . "\n.br\n" . $_;
        }
        if (/([\w\*]*)[\t ]+(.*?)\((.*)\);/ and $state == 2) {
                # this should also end the current comment parsing
@@ -115,8 +115,8 @@ while(<>) {
                        $key =~ s/^\*//;
                        $return = '*' . $return;
                }
-               $description =~ s/\\param\[in\][ \t]*([\*\w]+)[ \t]+/\\fB$1\\fR: /g;
-               $description =~ s/\\param\[out\][ \t]*([\*\w]+)[ \t]+/\\fB$1\\fR: /g;
+               $description =~ s/\\param\[in\][ \t]*([\*\w]+)[ \t]+/.br\n\\fB$1\\fR: /g;
+               $description =~ s/\\param\[out\][ \t]*([\*\w]+)[ \t]+/.br\n\\fB$1\\fR: /g;
                $description =~ s/\\return[ \t]*/Returns /g;
                
                $description{$key} = $description;
@@ -159,6 +159,7 @@ foreach (keys %manpages) {
        foreach (@$a) {
                print MAN  ".HP\n";
                print MAN "\\fI", $_, "\\fR", "()"; 
+#              print MAN ".br\n";
                print MAN  $description{$_};
                print MAN  "\n.PP\n";
        }
index 9dc50942a315494260a1b5db0cf54baad29ed6ef..2ead22c128cca01497e39f21d3c9bb4916288ad8 100644 (file)
@@ -45,7 +45,6 @@ typedef enum ldns_enum_status ldns_status;
 
 extern ldns_lookup_table ldns_error_str[];
 
-
 /**
  * look up a descriptive text by each error
  * \param[in] err ldns_status number