diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-25 11:42:02 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-25 11:42:02 +0000 |
commit | 9d2ef545376117ce8b24ed652f358c029d7b8f4c (patch) | |
tree | 04be238fca39283691f2e1323ce5fb566a51c833 /man_validate.c | |
parent | 81b56cdb2563a0ccc155f42f0c79a82f9ccbb22a (diff) | |
download | mandoc-9d2ef545376117ce8b24ed652f358c029d7b8f4c.tar.gz mandoc-9d2ef545376117ce8b24ed652f358c029d7b8f4c.tar.zst mandoc-9d2ef545376117ce8b24ed652f358c029d7b8f4c.zip |
add support for the MT and ME mailto macros, used for example in wg(8);
patch from bentley@
Diffstat (limited to 'man_validate.c')
-rw-r--r-- | man_validate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/man_validate.c b/man_validate.c index e874cabb..12ba6e22 100644 --- a/man_validate.c +++ b/man_validate.c @@ -89,6 +89,8 @@ static const v_check __man_valids[MAN_MAX - MAN_TH] = { NULL, /* EE */ post_UR, /* UR */ NULL, /* UE */ + post_UR, /* MT */ + NULL, /* ME */ }; static const v_check *man_valids = __man_valids - MAN_TH; @@ -212,7 +214,7 @@ post_UR(CHKARGS) if (n->type == ROFFT_HEAD && n->child == NULL) mandoc_vmsg(MANDOCERR_UR_NOHEAD, man->parse, - n->line, n->pos, "UR"); + n->line, n->pos, roff_name[n->tok]); check_part(man, n); } |