diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-11-04 23:54:34 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-11-05 08:28:30 +0100 |
commit | eccaa83ceeb5008df4d4cfef93b59e3a2cda2336 (patch) | |
tree | 3c2bcb60ddf1b03572eecc5bb54578e7695ced82 /tests/manpage-syntax.pl | |
parent | 38ecb56df5cf022caec91b9d6d3769ffb5d3df0c (diff) | |
download | curl-eccaa83ceeb5008df4d4cfef93b59e3a2cda2336.tar.gz |
test1173: make manpage-syntax.pl spot \n errors in examples
Diffstat (limited to 'tests/manpage-syntax.pl')
-rw-r--r-- | tests/manpage-syntax.pl | 3 |
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; |