mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
kernel-doc: prevent duplicate description: output
Prevent duplicate output of a Description: section when there is a "blank" ("*") line between the initial function name/description line and the "Description:" header. Test case: drivers/scsi/scsi_devinfo.c::scsi_init_devinfo(). Rob Landley hit this while he was producing SCSI kernel-doc. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
3ab32df72b
commit
792aa2f2cc
1 changed files with 1 additions and 1 deletions
|
@ -1907,7 +1907,7 @@ sub process_file($) {
|
|||
$newsection = $1;
|
||||
$newcontents = $2;
|
||||
|
||||
if ($contents ne "") {
|
||||
if (($contents ne "") && ($contents ne "\n")) {
|
||||
if (!$in_doc_sect && $verbose) {
|
||||
print STDERR "Warning(${file}:$.): contents before sections\n";
|
||||
++$warnings;
|
||||
|
|
Loading…
Reference in a new issue