From: Michal Vaner Date: Sun, 15 Feb 2009 12:10:00 +0000 (+0100) Subject: doc. system: Allow single-line comments before def X-Git-Tag: holmes-import~76 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=0035c055fd147a2f7a396cbeadd21600b72d6c5b;p=libucw.git doc. system: Allow single-line comments before def --- diff --git a/build/doc-extract b/build/doc-extract index 576ad022..a7aabe4f 100755 --- a/build/doc-extract +++ b/build/doc-extract @@ -159,9 +159,12 @@ sub process( $$ ) { $struct = $sdepth = 1; } } elsif( ( $buff ) = ( $line =~ /\/\*\*\*(.*)\*\*\*\// ) ) { - $buff =~ s/\s?//; + $buff =~ s/^\s?//; print OUT "$buff\n\n"; $buff = undef; + } elsif( ( $buff ) = ( $line =~ /^\s*\/\*\*(.*)\*\*\// ) ) { + $buff =~ s/^\s*//; + $buff .= "\n"; } elsif( ( $head, $buff ) = ( $line =~ /^(.*)\/\*\*(.*)\*\*\// ) ) { $buff =~ s/^\s*//; $buff =~ s/\s*$//;