This helps comparing kernel-doc output with the new .py version of it.
Unified · Split
| @@ -760,6 +760,10 @@ sub output_highlight_rst { · 759 unmodified lines | ||
| 760 | 760 | if ($block) { |
| 761 | 761 | $output .= highlight_block($block); |
| 762 | 762 | } |
| 763 | + | |
| 764 | + $output =~ s/^\n+//g; | |
| 765 | + $output =~ s/\n+$//g; | |
| 766 | + | |
| 763 | 767 | foreach $line (split "\n", $output) { |
| 764 | 768 | print $lineprefix . $line . "\n"; |
| 765 | 769 | } |