Skip to content

Commit

Permalink
kernel-doc/rst: blank lines in output are not needed
Browse files Browse the repository at this point in the history
Current approach leads to two blank lines, while one is enough.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
  • Loading branch information
jnikula committed May 30, 2016
1 parent a0b96c2 commit 830066a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}

Expand Down

0 comments on commit 830066a

Please sign in to comment.