From 0f37e980efb2dbb1e6f7f497a1f324c410a84de4 Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Sat, 13 Sep 2008 12:42:53 +0200 Subject: [PATCH] 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). --- build/doc-defs | 1 + build/doc-extract | 2 ++ 2 files changed, 3 insertions(+) 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 { -- 2.39.5