test1173: make manpage-syntax.pl spot \n errors in examples

This commit is contained in:
Daniel Stenberg 2021-11-04 23:54:34 +01:00
parent 38ecb56df5
commit eccaa83cee
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;