From: Jani Nikula Date: Thu, 26 May 2016 19:04:33 +0000 (+0300) Subject: kernel-doc/rst: blank lines in output are not needed X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~9763^2~34^2~16 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=830066a7a317e3e8872cb2d21dd24af0815f51f9;p=mirror_ubuntu-focal-kernel.git kernel-doc/rst: blank lines in output are not needed Current approach leads to two blank lines, while one is enough. Signed-off-by: Jani Nikula --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index c154c3205df1..a89ff3ca366c 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1786,12 +1786,7 @@ sub output_highlight_rst { die $@ if $@; foreach $line (split "\n", $contents) { - if ($line eq "") { - print $lineprefix, $blankline; - } else { - print $lineprefix, $line; - } - print "\n"; + print $lineprefix . $line . "\n"; } }