]> mj.ucw.cz Git - libucw.git/commitdiff
Doc. system: Fix inline functions in description
authorMichal Vaner <vorner@ucw.cz>
Sat, 13 Sep 2008 18:12:51 +0000 (20:12 +0200)
committerMichal Vaner <vorner@ucw.cz>
Sat, 13 Sep 2008 18:12:51 +0000 (20:12 +0200)
They had { }, if it was on the first line.

Simpler handling of definitions.

build/doc-extract

index 9ce8a3c5e06547e7cf6ae35e8404cabc16b25b9c..db713095563e2b6069001871df130f1a73f0307b 100755 (executable)
@@ -56,13 +56,10 @@ sub formatNote( $$ ) {
         $head =~ s/;?\s*$/;/ if( $semicolon );
        $head =~ s/(\.\.\.)/\\$1/g;
        print OUT "[[${type}_$name]]\n";
-       if( $type eq 'fun' ) {
-               print OUT "!!f!$head!!!\n\n";
-       } else {
-               print OUT "..................\n";
-               print OUT "$head\n";
-               print OUT "..................\n\n";
-       }
+       $head = $oneline if $type eq 'fun';#Remove { from inline functions
+       print OUT "..................\n";
+       print OUT "$head\n";
+       print OUT "..................\n\n";
        if( $hasdump ) {
                print DUMP "$outname,${type}_$name,$type,$name,$oneline\n";
                $id ++;