diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-06-25 14:47:47 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-25 19:01:07 +0200 |
commit | 05189497d10c715bf41c05fb2fd89aa2cf7602f1 (patch) | |
tree | 505d66eb295267c4b744434fba33171729335d22 | |
parent | [PATCH] EDD isn't EXPERIMENTAL anymore (diff) | |
download | linux-05189497d10c715bf41c05fb2fd89aa2cf7602f1.tar.xz linux-05189497d10c715bf41c05fb2fd89aa2cf7602f1.zip |
[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>
-rwxr-xr-x | scripts/kernel-doc | 3 |
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($) { $contents = $newcontents; if ($contents ne "") { + if (substr($contents, 0, 1) eq " ") { + $contents = substr($contents, 1); + } $contents .= "\n"; } $section = $newsection; |