diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-05 12:34:17 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-05 12:34:17 +0000 |
commit | 1fb6260b95b5d63603b18fce1b7f24f1a0db82b3 (patch) | |
tree | 66f48fb762c03e72a2023f2f3ba6fa55961285bb /man_validate.c | |
parent | d6a2384f7d4afffa920faf2c8f8b7801f84669fe (diff) | |
download | mandoc-1fb6260b95b5d63603b18fce1b7f24f1a0db82b3.tar.gz mandoc-1fb6260b95b5d63603b18fce1b7f24f1a0db82b3.tar.zst mandoc-1fb6260b95b5d63603b18fce1b7f24f1a0db82b3.zip |
Cleanup with respect to bad macro arguments.
* Fix .Sm with invalid arg: move arg out and toggle mode.
* Promote "unknown standard" from WARNING to ERROR, it loses information.
* Delete MANDOCERR_BADWIDTH, it would only indicate a mandoc(1) bug.
* Do not report MANDOCERR_BL_LATETYPE when there is no type at all.
* Mention macro names, arguments and fallbacks.
Diffstat (limited to 'man_validate.c')
-rw-r--r-- | man_validate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/man_validate.c b/man_validate.c index f4dcda15..670acc8d 100644 --- a/man_validate.c +++ b/man_validate.c @@ -1,4 +1,4 @@ -/* $Id: man_validate.c,v 1.97 2014/07/04 16:12:08 schwarze Exp $ */ +/* $Id: man_validate.c,v 1.98 2014/07/05 12:34:17 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -303,8 +303,8 @@ post_ft(CHKARGS) } if (0 == ok) { - mandoc_vmsg(MANDOCERR_BADFONT, man->parse, n->line, - n->pos, "%s", cp); + mandoc_vmsg(MANDOCERR_FT_BAD, man->parse, + n->line, n->pos, "ft %s", cp); *cp = '\0'; } |