summaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-22 13:09:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-22 13:09:17 +0000
commit369129e10cecda27554b9987d819367bcfcf3353 (patch)
tree1d9055d8a6102e9072cd7bb27103aea9b53689b5 /man.c
parent47256364f90726421cafc28ec2f147ee98c59f94 (diff)
downloadmandoc-369129e10cecda27554b9987d819367bcfcf3353.tar.gz
mandoc-369129e10cecda27554b9987d819367bcfcf3353.tar.zst
mandoc-369129e10cecda27554b9987d819367bcfcf3353.zip
libman documents require `TH' and at least one node.
libman requirements documented in man.7 STRUCTURE section. Added STRUCTURE section to mdoc.7, too.
Diffstat (limited to 'man.c')
-rw-r--r--man.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/man.c b/man.c
index 8067153c..bf53b87a 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.24 2009/06/18 20:46:19 kristaps Exp $ */
+/* $Id: man.c,v 1.25 2009/06/22 13:09:17 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -466,6 +466,12 @@ man_err(struct man *m, int line, int pos,
case (WTQUOTE):
p = "unterminated quotation";
break;
+ case (WNODATA):
+ p = "document has no data";
+ break;
+ case (WNOTITLE):
+ p = "document has no title/section";
+ break;
}
assert(p);