Commit b9609ecb authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Jonathan Corbet
Browse files

scripts/kernel-doc: don't add not needed new lines

parent 99326b21
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -760,6 +760,10 @@ sub output_highlight_rst {
    if ($block) {
        $output .= highlight_block($block);
    }

    $output =~ s/^\n+//g;
    $output =~ s/\n+$//g;

    foreach $line (split "\n", $output) {
        print $lineprefix . $line . "\n";
    }