diff options
| author | Jani Nikula <jani.nikula@intel.com> | 2016-05-26 15:04:33 -0400 |
|---|---|---|
| committer | Jani Nikula <jani.nikula@intel.com> | 2016-05-30 06:38:59 -0400 |
| commit | 830066a7a317e3e8872cb2d21dd24af0815f51f9 (patch) | |
| tree | 05bcf89675166730388690138260ff26e138aab4 /scripts/kernel-doc | |
| parent | a0b96c2dbdb2c2511af407a2657d580f16c3b6f1 (diff) | |
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>
Diffstat (limited to 'scripts/kernel-doc')
| -rwxr-xr-x | scripts/kernel-doc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index c154c3205df1..a89ff3ca366c 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
| @@ -1786,12 +1786,7 @@ sub output_highlight_rst { | |||
| 1786 | die $@ if $@; | 1786 | die $@ if $@; |
| 1787 | 1787 | ||
| 1788 | foreach $line (split "\n", $contents) { | 1788 | foreach $line (split "\n", $contents) { |
| 1789 | if ($line eq "") { | 1789 | print $lineprefix . $line . "\n"; |
| 1790 | print $lineprefix, $blankline; | ||
| 1791 | } else { | ||
| 1792 | print $lineprefix, $line; | ||
| 1793 | } | ||
| 1794 | print "\n"; | ||
| 1795 | } | 1790 | } |
| 1796 | } | 1791 | } |
| 1797 | 1792 | ||
