=================================================================== RCS file: /cvs/mandoc/main.c,v retrieving revision 1.130 retrieving revision 1.132 diff -u -p -r1.130 -r1.132 --- mandoc/main.c 2011/01/01 16:18:39 1.130 +++ mandoc/main.c 2011/01/03 13:54:02 1.132 @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.130 2011/01/01 16:18:39 kristaps Exp $ */ +/* $Id: main.c,v 1.132 2011/01/03 13:54:02 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -176,9 +176,13 @@ static const char * const mandocerrs[MANDOCERR_MAX] = "bad comment style", "unknown escape sequence", "unterminated quoted string", + + /* related to tables */ + "extra data cells", "generic error", + /* related to tables */ "bad table syntax", "bad table option", "bad table layout", @@ -799,6 +803,14 @@ rerun: default: break; } + + /* + * If we encounter errors in the recursive parsebuf() + * call, make sure we don't continue parsing. + */ + + if (MANDOCLEVEL_FATAL <= file_status) + break; /* * If input parsers have not been allocated, do so now.