aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2006-06-25 08:47:47 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-25 13:01:07 -0400
commit05189497d10c715bf41c05fb2fd89aa2cf7602f1 (patch)
tree505d66eb295267c4b744434fba33171729335d22 /scripts
parent5d18639a833e9f034b055dcbb16a980be627f475 (diff)
[PATCH] kernel-doc: drop leading space in sections
Drop leading space of kernel-doc section contents. "Section" data (contents) are split from the section header (e.g., Note: below is a section header: * Note: list_empty on entry does not return true after this, the entry is * in an undefined state. ). Currently the data/contents begins with a space and is left that way, which causes it to look bad when printed (in text mode; see example below), so just remove the leading space. Note: list_empty on entry does not return true after this, the entry is in an undefined state. Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/kernel-doc3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 99fe4b7fb2f1..fc0835bf65e2 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1762,6 +1762,9 @@ sub process_file($) {
1762 1762
1763 $contents = $newcontents; 1763 $contents = $newcontents;
1764 if ($contents ne "") { 1764 if ($contents ne "") {
1765 if (substr($contents, 0, 1) eq " ") {
1766 $contents = substr($contents, 1);
1767 }
1765 $contents .= "\n"; 1768 $contents .= "\n";
1766 } 1769 }
1767 $section = $newsection; 1770 $section = $newsection;