+ kernel-doc-drop-leading-space-in-sections.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     kernel-doc: drop leading space in sections

has been added to the -mm tree.  Its filename is

     kernel-doc-drop-leading-space-in-sections.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: kernel-doc: drop leading space in sections
From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>


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@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 scripts/kernel-doc |    3 +++
 1 files changed, 3 insertions(+)

diff -puN scripts/kernel-doc~kernel-doc-drop-leading-space-in-sections scripts/kernel-doc
--- devel/scripts/kernel-doc~kernel-doc-drop-leading-space-in-sections	2006-05-21 14:01:34.000000000 -0700
+++ devel-akpm/scripts/kernel-doc	2006-05-21 14:01:34.000000000 -0700
@@ -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;
_

Patches currently in -mm which might be from rdunlap@xxxxxxxxxxxx are

origin.patch
config-exit-if-no-beginning-filename.patch
git-mtd.patch
git-scsi-rc-fixes.patch
imm-no-need-for-unchecked_isa_dma.patch
lpfc-sparse-null-warnings.patch
aic7-cleanup-module_parm_desc-strings.patch
areca-raid-linux-scsi-driver.patch
add-poisonh-and-patch-primary-users.patch
update-2-drivers-for-poisonh.patch
add-doc-submitchecklist.patch
doc-add-audit-acct-to-docbook.patch
ip2-fix-sections.patch
codingstyle-add-typedefs-chapter.patch
fix-listh-kernel-doc.patch
listh-doc-change-counter-to-control.patch
kernel-doc-drop-leading-space-in-sections.patch
acpi-identify-which-device-is-not-power-manageable.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux