diff options
author | 2010-06-03 13:44:36 +0000 | |
---|---|---|
committer | 2010-06-03 13:44:36 +0000 | |
commit | ce0ad98d5799eeab84796f4d6a7ed2450a21010b (patch) | |
tree | 2084a5121b42f0afe6f85c813f72a7b9b1d85b87 /main.c | |
parent | 68b68248d4c207e5fb883e570a5a285fc0385636 (diff) | |
download | mandoc-ce0ad98d5799eeab84796f4d6a7ed2450a21010b.tar.gz mandoc-ce0ad98d5799eeab84796f4d6a7ed2450a21010b.tar.zst mandoc-ce0ad98d5799eeab84796f4d6a7ed2450a21010b.zip |
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.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 <kristaps@kth.se> * @@ -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", |