From: Michal Vaner Date: Sat, 13 Sep 2008 10:42:53 +0000 (+0200) Subject: Doc. system: fix ... in function parameters X-Git-Tag: holmes-import~303 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=0f37e980efb2dbb1e6f7f497a1f324c410a84de4;p=libucw.git Doc. system: fix ... in function parameters Asciidoc tries to convert all ... strings into ellipsis character, which is wrong in function parameters (it is 3 separate chars in reality, besides this caused problems with xrefs, links, etc). --- diff --git a/build/doc-defs b/build/doc-defs index 712968c3..c6988583 100755 --- a/build/doc-defs +++ b/build/doc-defs @@ -43,6 +43,7 @@ foreach( sort { ( $groups{$a->[2]} <=> $groups{$b->[2]} ) or ( $a->[3] cmp $b->[ $file =~ s/^\///; $file =~ s/\.[^.]+$//; $text =~ s/\(/!!PARENT_OPEN!!/g; + $text =~ s/(\.\.\.)/\\$1/g; print OUT "- <<$file:auto_$num,`$text`>>\n"; } diff --git a/build/doc-extract b/build/doc-extract index 8553af94..072b9237 100755 --- a/build/doc-extract +++ b/build/doc-extract @@ -52,7 +52,9 @@ sub formatNote( $$ ) { chomp $head; print OUT "[[auto_$id]]\n"; my( $type, $semicolon, $name, $oneline ) = detect( $head ); + $oneline =~ s/\s+$//; $head =~ s/;?\s*$/;/ if( $semicolon ); + $head =~ s/(\.\.\.)/\\$1/g; if( $type eq 'function' ) { print OUT "!!f!$head!!!\n\n"; } else {