mirror of https://gitee.com/openkylin/linux.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 <jani.nikula@intel.com>
This commit is contained in:
parent
a0b96c2dbd
commit
830066a7a3
|
@ -1786,12 +1786,7 @@ sub output_highlight_rst {
|
||||||
die $@ if $@;
|
die $@ if $@;
|
||||||
|
|
||||||
foreach $line (split "\n", $contents) {
|
foreach $line (split "\n", $contents) {
|
||||||
if ($line eq "") {
|
print $lineprefix . $line . "\n";
|
||||||
print $lineprefix, $blankline;
|
|
||||||
} else {
|
|
||||||
print $lineprefix, $line;
|
|
||||||
}
|
|
||||||
print "\n";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue