From 8d5916b51305657eb92b61f1716bda0cbaa0fb45 Mon Sep 17 00:00:00 2001 From: schwarze Date: Fri, 8 Aug 2014 15:26:28 +0000 Subject: Get rid of the useless FATAL error "child violates parent syntax". When finding items outside lists, simply skip them and throw an ERROR. Handle subsections before the first section instead of bailing out. --- usr.bin/mandoc/read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/mandoc/read.c') diff --git a/usr.bin/mandoc/read.c b/usr.bin/mandoc/read.c index c7d67756a51..bba7c9f3c8c 100644 --- a/usr.bin/mandoc/read.c +++ b/usr.bin/mandoc/read.c @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.50 2014/08/08 15:21:17 schwarze Exp $ */ +/* $Id: read.c,v 1.51 2014/08/08 15:26:28 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -177,6 +177,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "input stack limit exceeded, infinite loop?", "skipping bad character", "skipping unknown macro", + "skipping item outside list", "skipping column outside column list", "skipping end of block that is not open", "inserting missing end of block", @@ -198,7 +199,6 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "input too large", "column syntax is inconsistent", "NOT IMPLEMENTED: .Bd -file", - "child violates parent syntax", "argument count wrong, violates syntax", "NOT IMPLEMENTED: .so with absolute path or \"..\"", ".so request failed", -- cgit v1.2.3-59-g8ed1b