summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2017-05-15 17:24:49 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2017-05-15 17:24:49 +0000
commit420c8058e30d5ca761881e8829036a71740d2184 (patch)
treec9714c28034be76cbdc6279c2a7def54956f81d8 /regress/usr.bin
parentf8b3ac0fcb52f8eccd4bd240c0e1ab9e8a7487dd (diff)
Delete the -H option.
What it did was nothing but bad advice nowadays. OK jmc@ wiz@
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mdoclint/mdoclint19
-rw-r--r--regress/usr.bin/mdoclint/mdoclint.121
2 files changed, 7 insertions, 33 deletions
diff --git a/regress/usr.bin/mdoclint/mdoclint b/regress/usr.bin/mdoclint/mdoclint
index 5784acb3a4b..4c6783304ed 100644
--- a/regress/usr.bin/mdoclint/mdoclint
+++ b/regress/usr.bin/mdoclint/mdoclint
@@ -1,6 +1,6 @@
#!/usr/bin/perl
#
-# $OpenBSD: mdoclint,v 1.62 2017/05/15 13:36:05 schwarze Exp $
+# $OpenBSD: mdoclint,v 1.63 2017/05/15 17:24:48 schwarze Exp $
# $NetBSD: mdoclint,v 1.71 2017/05/15 09:33:03 wiz Exp $
#
# Copyright (c) 2001-2017 Thomas Klausner
@@ -42,7 +42,7 @@ use constant {
};
use vars qw(
- $opt_D $opt_d $opt_e $opt_F $opt_f $opt_H $opt_h $opt_l
+ $opt_D $opt_d $opt_e $opt_F $opt_f $opt_h $opt_l
$opt_m $opt_n $opt_o $opt_p $opt_r $opt_S $opt_v $opt_w
$opt_X $opt_x
);
@@ -64,7 +64,6 @@ usage: mdoclint [-$options] file ...
-e warn about unsorted errors (for functions)
-F fix whitespace problems (asks before overwriting)
-f warn about possible incorrect .Fn syntax
- -H warn about characters that produce problems in HTML output
-h display this help text
-l warn about unknown libraries
-m warn about man pages that are not in mdoc(7) format
@@ -247,7 +246,7 @@ sub handle_options
$opt_h and usage();
# default to all warnings if no flag is set
- unless ($opt_D or $opt_d or $opt_e or $opt_f or $opt_H or $opt_l
+ unless ($opt_D or $opt_d or $opt_e or $opt_f or $opt_l
or $opt_m or $opt_n or $opt_o or $opt_p or $opt_r
or $opt_S or $opt_X or $opt_x) {
$opt_D = $opt_d = $opt_f = $opt_m =
@@ -443,18 +442,6 @@ sub process_line
if (/^\.Fn.*,.+/o) {
$s->warning("possible .Fn misuse: `$_'") if $opt_f;
}
- if (OPENBSD) {
- if (/^(?:[<>])/o or /[^\\][<>]/o) {
- $s->warning("use \*(Lt \*(Gt (or .Aq) ",
- "instead of < >: `$_'") if $opt_H;
- }
- }
- if (NETBSD) {
- if (/^(?:[<>&])/o or /[^\\][<>&]/o) {
- $s->warning("use \*[Lt] \*[Gt] (or .Aq) \*[Am] ",
- "instead of < > &: `$_'") if $opt_H;
- }
- }
if (/\b(Free|Net|DragonFly|Open)BSD\b/o
and not /\b(?:www|ftp)\.(?:Free|Net|DragonFly|Open)BSD\.org\b/o
diff --git a/regress/usr.bin/mdoclint/mdoclint.1 b/regress/usr.bin/mdoclint/mdoclint.1
index d079a4a1304..1f3bc1b15b3 100644
--- a/regress/usr.bin/mdoclint/mdoclint.1
+++ b/regress/usr.bin/mdoclint/mdoclint.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mdoclint.1,v 1.20 2017/05/14 20:02:00 schwarze Exp $
+.\" $OpenBSD: mdoclint.1,v 1.21 2017/05/15 17:24:48 schwarze Exp $
.\" $NetBSD: mdoclint.1,v 1.15 2017/05/02 13:59:10 wiz Exp $
.\"
.\" Copyright (c) 2001-2013 Thomas Klausner
@@ -25,7 +25,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 14 2017 $
+.Dd $Mdocdate: May 15 2017 $
.Dt MDOCLINT 1
.Os
.Sh NAME
@@ -33,7 +33,7 @@
.Nd man page verifier
.Sh SYNOPSIS
.Nm
-.Op Fl DdeFfHhlmnoprSvwXx
+.Op Fl DdeFfhlmnoprSvwXx
.Ar
.Sh DESCRIPTION
.Nm
@@ -43,7 +43,7 @@ errors that occur when writing man pages as possible.
If no flags are given,
.Fl DdfmnoprSXx
is assumed (that is, everything except
-.Fl eFHhlvw ) .
+.Fl eFhlvw ) .
.Pp
The options are as follows:
.Bl -tag -width Ds
@@ -60,19 +60,6 @@ Warn about possible .Fn abuse; its arguments should be put in
.Sq \&"
separately, not together and separated by commas.
Those will be automatically added by mdoc.
-.It Fl H
-Show warnings for characters that might generate problems in
-HTML output:
-.Sq \*(Lt
-and
-.Sq \*(Gt .
-Replace a pair of angle quotes with the .Aq macro.
-Otherwise, the replacements are
-.Dq \e*(Lt
-and
-.Dq \e*(Gt .
-This option is off by default,
-as these characters no longer pose any problems.
.It Fl h
Display usage.
.It Fl l