aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-05-02 09:09:16 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-05-02 09:09:59 +0200
commit1135340214ed786385c9902142593efd4d1fb449 (patch)
tree57aa20237568e0bba29765c25e40ac047ce98a3f /tests
parentdac8ce9558e937d8f8457c7d8096e48043548cec (diff)
nroff-scan.pl: verify that references are made with \fI
Diffstat (limited to 'tests')
-rw-r--r--tests/nroff-scan.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/nroff-scan.pl b/tests/nroff-scan.pl
index a70c16b86..393068cd3 100644
--- a/tests/nroff-scan.pl
+++ b/tests/nroff-scan.pl
@@ -64,7 +64,7 @@ sub file {
my ($pre, $str, $post)=($1, $2, $3);
if($post ne "P") {
print STDERR "error: $f:$line: missing \\fP after $str\n";
- $errrors++;
+ $errors++;
}
if($str =~ /((libcurl|curl)([^ ]*))\(3\)/i) {
my $man = "$1.3";
@@ -72,6 +72,10 @@ sub file {
print STDERR "error: $f:$line: refering to non-existing man page $man\n";
$errors++;
}
+ if($pre ne "I") {
+ print STDERR "error: $f:$line: use \\fI before $str\n";
+ $errors++;
+ }
}
}
if($l =~ /(curl([^ ]*)\(3\))/i) {
@@ -97,4 +101,4 @@ foreach my $f (@f) {
file($f);
}
- exit $errors?1:0;
+exit $errors?1:0;