From: Daniel Stenberg Date: Thu, 4 Nov 2021 22:54:34 +0000 (+0100) Subject: test1173: make manpage-syntax.pl spot \n errors in examples X-Git-Tag: curl-7_80_0~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eccaa83ceeb5008df4d4cfef93b59e3a2cda2336;p=thirdparty%2Fcurl.git test1173: make manpage-syntax.pl spot \n errors in examples --- diff --git a/tests/manpage-syntax.pl b/tests/manpage-syntax.pl index dc48a284c3..67a0b74028 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;