aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-23 13:31:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-23 13:31:03 +0000
commitf219a129fd68f9a8fd81fca8b18ef3fb534854a0 (patch)
tree8ab19745b42717079a9ed97cff0fc84d08247a1d /read.c
parent71840fc752bb2b731194aa9d32165cd967d262b2 (diff)
downloadmandoc-f219a129fd68f9a8fd81fca8b18ef3fb534854a0.tar.gz
mandoc-f219a129fd68f9a8fd81fca8b18ef3fb534854a0.tar.zst
mandoc-f219a129fd68f9a8fd81fca8b18ef3fb534854a0.zip
improve NAME section diagnostics;
confusing messages reported by Jan Stary <hans at stare dot cz>
Diffstat (limited to 'read.c')
-rw-r--r--read.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/read.c b/read.c
index 69d81f5a..3fbedc81 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.127 2015/02/20 22:40:38 schwarze Exp $ */
+/* $Id: read.c,v 1.128 2015/02/23 13:31:04 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -109,7 +109,10 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"no document body",
"content before first section header",
"first section is not \"NAME\"",
- "bad NAME section contents",
+ "NAME section without name",
+ "NAME section without description",
+ "description not at the end of NAME",
+ "bad NAME section content",
"missing description line, using \"\"",
"sections out of conventional order",
"duplicate section title",