summaryrefslogtreecommitdiff
path: root/textproc/mdoclint
diff options
context:
space:
mode:
authorwiz <wiz>2013-07-30 18:46:29 +0000
committerwiz <wiz>2013-07-30 18:46:29 +0000
commit06e99ef697f34fae4ea78e438e49032b43708d5d (patch)
tree6aae722cb31844d35e6a02db24c0ca85cbb8003a /textproc/mdoclint
parent840762e0733852ff42159201f4305e24a69af277 (diff)
downloadpkgsrc-06e99ef697f34fae4ea78e438e49032b43708d5d.tar.gz
Make Bq and Er optional for errors.
Diffstat (limited to 'textproc/mdoclint')
-rwxr-xr-xtextproc/mdoclint/files/mdoclint6
1 files changed, 3 insertions, 3 deletions
diff --git a/textproc/mdoclint/files/mdoclint b/textproc/mdoclint/files/mdoclint
index 4a29a3383d0..f20182435bf 100755
--- a/textproc/mdoclint/files/mdoclint
+++ b/textproc/mdoclint/files/mdoclint
@@ -1,7 +1,7 @@
#!@PERL5@
#
# $OpenBSD: mdoclint,v 1.14 2009/04/13 12:40:05 espie Exp $
-# $NetBSD: mdoclint,v 1.34 2013/07/30 18:37:56 wiz Exp $
+# $NetBSD: mdoclint,v 1.35 2013/07/30 18:46:29 wiz Exp $
#
# Copyright (c) 2001-2013 Thomas Klausner
# All rights reserved.
@@ -637,8 +637,8 @@ sub process_line
/^\.Bl\s+/o and $s->{last_error_name} = "";
if ($s->{current_section_header} eq "ERRORS" and
- /^\.It\s+Bq\s+Er\s+(E[\w_]+)$/o) {
- my $current_error_name = $1;
+ /^\.It\s+(Bq\s+)?(Er\s+)?(E[\w_]+)$/o) {
+ my $current_error_name = $3;
if ($s->{last_error_name} eq $current_error_name) {
$s->warning("Duplicate item for ",