summaryrefslogtreecommitdiff
path: root/tests/manpage-syntax.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manpage-syntax.pl')
-rw-r--r--tests/manpage-syntax.pl8
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;