From: Michal Vaner Date: Sat, 13 Sep 2008 18:12:51 +0000 (+0200) Subject: Doc. system: Fix inline functions in description X-Git-Tag: holmes-import~296 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=c0ea84a3f0d6891bb1d0c7610de122fe4fb00cc3;p=libucw.git Doc. system: Fix inline functions in description They had { }, if it was on the first line. Simpler handling of definitions. --- diff --git a/build/doc-extract b/build/doc-extract index 9ce8a3c5..db713095 100755 --- a/build/doc-extract +++ b/build/doc-extract @@ -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 ++;