From 8167caf0bc9addad608862f470af6820e069d79b Mon Sep 17 00:00:00 2001 From: Randy Dunlap Date: Wed, 11 Oct 2006 01:22:12 -0700 Subject: [PATCH] --- yaml --- r: 39364 b: refs/heads/master c: 272057447f646c51bc77c60044eb21c683fa366d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/kernel-doc | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index c313900df322..4fe1ba27110f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c751c1dbb1289d220a8a175ba0df47706ce95a7e +refs/heads/master: 272057447f646c51bc77c60044eb21c683fa366d diff --git a/trunk/scripts/kernel-doc b/trunk/scripts/kernel-doc index 7bc53a94faa9..187f5de4612c 100755 --- a/trunk/scripts/kernel-doc +++ b/trunk/scripts/kernel-doc @@ -1262,7 +1262,9 @@ sub output_intro_text(%) { } ## -# generic output function for typedefs +# generic output function for all types (function, struct/union, typedef, enum); +# calls the generated, variable output_ function name based on +# functype and output_mode sub output_declaration { no strict 'refs'; my $name = shift; @@ -1278,8 +1280,7 @@ sub output_declaration { } ## -# generic output function - calls the right one based -# on current output mode. +# generic output function - calls the right one based on current output mode. sub output_intro { no strict 'refs'; my $func = "output_intro_".$output_mode; @@ -1781,8 +1782,9 @@ sub process_file($) { $in_doc_sect = 1; $contents = $newcontents; if ($contents ne "") { - if (substr($contents, 0, 1) eq " ") { - $contents = substr($contents, 1); + while ((substr($contents, 0, 1) eq " ") || + substr($contents, 0, 1) eq "\t") { + $contents = substr($contents, 1); } $contents .= "\n"; }