]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1173: make manpage-syntax.pl spot \n errors in examples
authorDaniel Stenberg <daniel@haxx.se>
Thu, 4 Nov 2021 22:54:34 +0000 (23:54 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 5 Nov 2021 07:28:30 +0000 (08:28 +0100)
tests/manpage-syntax.pl

index dc48a284c35442aa879d7e44cc281cff92632e2d..67a0b740285a6fb40837281a41b4f12d994981d2 100644 (file)
@@ -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;