diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 208ad3b0ca51baf955dc59a750f8d848c8465e01..c7865c362d28fdbe160c94bfdd54e40bf34f8dd5 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -2103,7 +2103,7 @@ sub process_file($) { $section = $newsection; } elsif (/$doc_end/) { - if ($contents ne "") { + if (($contents ne "") && ($contents ne "\n")) { dump_section($file, $section, xml_escape($contents)); $section = $section_default; $contents = "";