* [PATCH 1/2] kernel-doc: drop leading space in sections
@ 2006-05-20 4:47 Randy.Dunlap
0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2006-05-20 4:47 UTC (permalink / raw)
To: lkml; +Cc: tali, akpm
From: Randy Dunlap <rdunlap@xenotime.net>
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>
---
scripts/kernel-doc | 3 +++
1 files changed, 3 insertions(+)
--- linux-2617-rc4.orig/scripts/kernel-doc
+++ linux-2617-rc4/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;
---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-20 4:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-20 4:47 [PATCH 1/2] kernel-doc: drop leading space in sections Randy.Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®