From 1fb6260b95b5d63603b18fce1b7f24f1a0db82b3 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 5 Jul 2014 12:34:17 +0000 Subject: 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. --- read.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'read.c') diff --git a/read.c b/read.c index 5ad294f9..62894d2e 100644 --- a/read.c +++ b/read.c @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.62 2014/07/05 01:12:20 schwarze Exp $ */ +/* $Id: read.c,v 1.63 2014/07/05 12:34:17 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -145,13 +145,11 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { /* related to bad macro arguments */ "skipping argument", "duplicate argument", - "duplicate display type", - "duplicate list type", + "skipping duplicate display type", + "skipping duplicate list type", "unknown AT&T UNIX version", - "bad Boolean value", - "unknown font", - "unknown standard specifier", - "bad width argument", + "invalid Boolean argument", + "unknown font, skipping request", /* related to plain text */ "blank line in non-literal context", @@ -189,6 +187,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "NOT IMPLEMENTED, please use groff: skipping request", "argument count wrong", "skipping invalid content in .Rs block", + "unknown standard specifier", "skipping column outside column list", "skipping end of block that is not open", "missing end of block", -- cgit v1.2.3