From: Randy Dunlap <[email protected]> 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 <[email protected]> --- 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; --- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Prev by Date: [PATCH 2/2] kernel-doc: script cleanups
- Next by Date: [git patches] libata fixes
- Previous by thread: [PATCH 2/2] kernel-doc: script cleanups
- Next by thread: [git patches] libata fixes
- Index(es):