kernel-doc/rst: blank lines in output are not needed
authorJani Nikula <jani.nikula@intel.com>
Thu, 26 May 2016 19:04:33 +0000 (22:04 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 30 May 2016 10:38:59 +0000 (13:38 +0300)
Current approach leads to two blank lines, while one is enough.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
scripts/kernel-doc

index c154c3205df1772dda6a22320062376d1bb93280..a89ff3ca366ca505a73f92321057b28d79be4cae 100755 (executable)
@@ -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";
     }
 }