Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cdccb316c0860b26ad52f622a7592122a62d02b4
Commit:     cdccb316c0860b26ad52f622a7592122a62d02b4
Parent:     51f5a0c8f63990fcb6e09ed52be348df58c9e416
Author:     Randy Dunlap <[EMAIL PROTECTED]>
AuthorDate: Thu Jul 19 01:48:25 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Jul 19 10:04:45 2007 -0700

    kernel-doc: fix leading dot in man-mode output
    
    If a parameter description begins with a '.', this indicates a "request"
    for "man" mode output (*roff), so it needs special handling.
    
    Problem case is in include/asm-i386/atomic.h for function
    atomic_add_unless():
     * @u: ...unless v is equal to u.
    This parameter description is currently not printed in man mode output.
    
    [EMAIL PROTECTED]: cleanup]
    Signed-off-by: Randy Dunlap <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 scripts/kernel-doc |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index f5862ab..1f58351 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -404,7 +404,11 @@ sub output_highlight {
            print $lineprefix, $blankline;
        } else {
            $line =~ s/\\\\\\/\&/g;
-           print $lineprefix, $line;
+           if ($output_mode eq "man" && substr($line, 0, 1) eq ".") {
+               print "\\&$line";
+           } else {
+               print $lineprefix, $line;
+           }
        }
        print "\n";
     }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to