From: Jani Nikula Date: Sun, 29 May 2016 19:27:35 +0000 (+0300) Subject: kernel-doc/rst: do not output DOC: section titles for requested ones X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e72184b55df2b5b8ebdcf0470bd43ef32dc518f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git kernel-doc/rst: do not output DOC: section titles for requested ones If the user requests a specific DOC: section by name, do not output its section title. In these cases, the surrounding context already has a heading, and the DOC: section title is only used as an identifier and a heading for clarity in the source file. Signed-off-by: Jani Nikula --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index dd08944b0a6f..659d529b99d8 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1764,7 +1764,9 @@ sub output_blockhead_rst(%) { my ($parameter, $section); foreach $section (@{$args{'sectionlist'}}) { - print "**$section**\n\n"; + if ($output_selection != OUTPUT_INCLUDE) { + print "**$section**\n\n"; + } output_highlight_rst($args{'sections'}{$section}); print "\n"; }