From ce0ad98d5799eeab84796f4d6a7ed2450a21010b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 3 Jun 2010 13:44:36 +0000 Subject: Consolidated list processing to a single loop in mdoc_validate.c. This relieves having to repeat running over the argument list in mdoc_action.c and mdoc_validate.c. Default to LIST_item for type-less lists (groff technically doesn't do this: it just ignores the `It' lines altogether). Make MANDOC_LISTTYPE be a recoverable error. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 78f0ddb0..2a2bd386 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.81 2010/06/01 14:54:37 kristaps Exp $ */ +/* $Id: main.c,v 1.82 2010/06/03 13:44:36 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -141,12 +141,12 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "macro requires body argument(s)", "macro requires argument(s)", "no title in document", + "missing list type", "line argument(s) will be lost", "body argument(s) will be lost", "column syntax is inconsistent", "missing font type", "missing display type", - "missing list type", "displays may not be nested", "no scope to rewind: syntax violated", "scope broken, syntax violated", -- cgit v1.2.3