Made mkref script handle the case of a void parameter correctly. Allowed
text lines to begin with any whitespace character (not just space).
This commit is contained in:
parent
d127a63155
commit
cd0469894b
1 changed files with 5 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue