Merge pull request #896 from echampet/webresource
[mono.git] / docs / exdoc
index 058a2f7b962399d0c382b59ff000616060769377..517956c3e6387b07137055ee91f9d5f64b62c09d 100644 (file)
@@ -178,7 +178,6 @@ sub process_doc {
        $body = "";
        $functions[$fn++] = $func;
        $deprecated = 0;
-       
        # Process arguments
        while (<>){
            s/NULL/<code>NULL<\/code>/g;
@@ -193,9 +192,9 @@ sub process_doc {
                    $returns =~ s/#(\w+)/<code>\1<\/code>/g;
                    $args =~ s/#(\w+)/<code>\1<\/code>/g;
 
-                   $returns =~ s/\`([:\w\*]+)\`/<code>\1<\/code>/g;
-                   $args =~ s/\`([:\w\*]+)\`/<code>\1<\/code>/g;
-                   $body =~ s/\`([:\w\*]+)\`/<code>\1<\/code>/g;
+                   $returns =~ s/\`([:.\w\*]+)\`/<code>\1<\/code>/g;
+                   $args =~ s/\`([:.\w\*]+)\`/<code>\1<\/code>/g;
+                   $body =~ s/\`([:.\w\*]+)\`/<code>\1<\/code>/g;
                    
                    $body =~ s/\n/ /;
                    $bodies{$func} = $body;
@@ -217,7 +216,7 @@ sub process_doc {
                }
                chop;
                s/^\ \*//;
-               $_ = "\n<p>" if (/^\s+$/);
+               $_ = "<p>" if (/^\s*$/);
                                
                if ($inbody == 0){
                    if (/\s*(\w+):(.*)/){
@@ -230,6 +229,7 @@ sub process_doc {
                    } else {
                        
                        $body = "\t$_\n";
+
                        $inbody = 1;
                    }
                } elsif ($inbody == 1) {