summaryrefslogtreecommitdiffstats
path: root/scripts/kernel-doc
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2016-05-26 22:04:33 +0300
committerJani Nikula <jani.nikula@intel.com>2016-05-30 13:38:59 +0300
commit830066a7a317e3e8872cb2d21dd24af0815f51f9 (patch)
tree05bcf89675166730388690138260ff26e138aab4 /scripts/kernel-doc
parenta0b96c2dbdb2c2511af407a2657d580f16c3b6f1 (diff)
downloadlinux-830066a7a317e3e8872cb2d21dd24af0815f51f9.tar.bz2
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 <jani.nikula@intel.com>
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-xscripts/kernel-doc7
1 files changed, 1 insertions, 6 deletions
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";
}
}