summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-11-04 23:54:34 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-11-05 08:28:30 +0100
commiteccaa83ceeb5008df4d4cfef93b59e3a2cda2336 (patch)
tree3c2bcb60ddf1b03572eecc5bb54578e7695ced82
parent38ecb56df5cf022caec91b9d6d3769ffb5d3df0c (diff)
downloadcurl-eccaa83ceeb5008df4d4cfef93b59e3a2cda2336.tar.gz
test1173: make manpage-syntax.pl spot \n errors in examples
-rw-r--r--tests/manpage-syntax.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/manpage-syntax.pl b/tests/manpage-syntax.pl
index dc48a284c..67a0b7402 100644
--- a/tests/manpage-syntax.pl
+++ b/tests/manpage-syntax.pl
@@ -104,6 +104,9 @@ sub scanmanpage {
}
elsif($inex) {
$exsize++;
+ if($_ =~ /[^\\]\\n/) {
+ print STDERR "$file:$line '\\n' need to be '\\\\n'!\n";
+ }
}
if($_ =~ /^\.SH ([^\r\n]*)/i) {
my $n = $1;