History

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

This helps comparing kernel-doc output with the new .py version of it.

Mauro Carvalho Chehab committed 1 year ago

Commit b9609ec1 parent 99326b21 file · +4 −0Browse files

Unified · Split

scripts/kernel-doc+4−0
@@ -760,6 +760,10 @@ sub output_highlight_rst { · 759 unmodified lines
760 if ($block) {760 if ($block) {
761 $output .= highlight_block($block);761 $output .= highlight_block($block);
762 }762 }
763
764 $output =~ s/^\n+//g;
765 $output =~ s/\n+$//g;
766
763 foreach $line (split "\n", $output) {767 foreach $line (split "\n", $output) {
764 print $lineprefix . $line . "\n";768 print $lineprefix . $line . "\n";
765 }769 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t