diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-08-21 15:31:31 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-08-21 16:44:03 +0200 |
commit | 4e53b9430c7504de8984796e2a2091ec16f27136 (patch) | |
tree | abdefb18875a039fbfa621d024c707eb26bbe44b /tests/manpage-syntax.pl | |
parent | 77c739909b6f4140bd925cf15626cca8be3c5628 (diff) | |
download | curl-4e53b9430c7504de8984796e2a2091ec16f27136.tar.gz |
man pages: remove trailing whitespaces
Extended test 1173 (via the manpage-syntax.pl script) to detect and warn
for them.
Ref: #7602
Reported-by: a1346054 on github
Closes #7604
Diffstat (limited to 'tests/manpage-syntax.pl')
-rw-r--r-- | tests/manpage-syntax.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/manpage-syntax.pl b/tests/manpage-syntax.pl index 184df6bbb..8885ec8ce 100644 --- a/tests/manpage-syntax.pl +++ b/tests/manpage-syntax.pl @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2019 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) 2019 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -50,6 +50,10 @@ sub scanmanpage { $errors++; } } + if($_ =~ /[ \t]+$/) { + print STDERR "$file:$line trailing whitespace\n"; + $errors++; + } $line++; } close(M); @@ -60,4 +64,6 @@ for my $m (@manpages) { scanmanpage($m); } +print STDERR "ok\n" if(!$errors); + exit $errors; |