Made mkref script handle the case of a void parameter correctly. Allowed
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 13 Feb 2008 20:14:38 +0000 (20:14 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 13 Feb 2008 20:14:38 +0000 (20:14 +0000)
text lines to begin with any whitespace character (not just space).

doc/mkref

index 50837fed2f4b753173fb9352a1ffeb14c4d0b5a3..8ded9c1911a58bc6cb1580ec880eb4cd7606bf65 100755 (executable)
--- a/doc/mkref
+++ b/doc/mkref
@@ -62,6 +62,10 @@ while($s = <>){
     </funcsynopsis>
   </refsynopsisdiv>
 ";
+       }elsif($s =~ m/^Param:[[:space:]]*void/){
+               print
+"        <void/>
+"
        }elsif($s =~ m/^Param: (.*)/){
                $p = $1;
                $p =~ m/(.*) (.*)/;
@@ -110,7 +114,7 @@ while($s = <>){
 ";
        }elsif($s eq ""){
                print "</para><para>\n";
-       }elsif($s =~ m/^ (.*)/){
+       }elsif($s =~ m/^[\s](.*)/){
                print "$1\n";
        }
 }