aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kernel-doc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-xscripts/kernel-doc12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 7bc53a94faa9..187f5de4612c 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1262,7 +1262,9 @@ sub output_intro_text(%) {
1262} 1262}
1263 1263
1264## 1264##
1265# generic output function for typedefs 1265# generic output function for all types (function, struct/union, typedef, enum);
1266# calls the generated, variable output_ function name based on
1267# functype and output_mode
1266sub output_declaration { 1268sub output_declaration {
1267 no strict 'refs'; 1269 no strict 'refs';
1268 my $name = shift; 1270 my $name = shift;
@@ -1278,8 +1280,7 @@ sub output_declaration {
1278} 1280}
1279 1281
1280## 1282##
1281# generic output function - calls the right one based 1283# generic output function - calls the right one based on current output mode.
1282# on current output mode.
1283sub output_intro { 1284sub output_intro {
1284 no strict 'refs'; 1285 no strict 'refs';
1285 my $func = "output_intro_".$output_mode; 1286 my $func = "output_intro_".$output_mode;
@@ -1781,8 +1782,9 @@ sub process_file($) {
1781 $in_doc_sect = 1; 1782 $in_doc_sect = 1;
1782 $contents = $newcontents; 1783 $contents = $newcontents;
1783 if ($contents ne "") { 1784 if ($contents ne "") {
1784 if (substr($contents, 0, 1) eq " ") { 1785 while ((substr($contents, 0, 1) eq " ") ||
1785 $contents = substr($contents, 1); 1786 substr($contents, 0, 1) eq "\t") {
1787 $contents = substr($contents, 1);
1786 } 1788 }
1787 $contents .= "\n"; 1789 $contents .= "\n";
1788 } 1790 }