This helps comparing kernel-doc output with the new .py version of it.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -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 | } |