summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-07-18 19:44:39 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-07-18 19:44:39 +0000
commit74f1eb0e192f60b865fa0a1e03580e66b3f35a3f (patch)
treedb8d536a5325710fd050307019bb02122d51833b /usr.bin/mandoc/mdoc_validate.c
parent02cdff506154f56833ff6416f88443960b22cb83 (diff)
sync to 1.8.0: move mdoc_a2att, mdoc_a2st, and mdoc_a2lib to libmdoc
Diffstat (limited to 'usr.bin/mandoc/mdoc_validate.c')
-rw-r--r--usr.bin/mandoc/mdoc_validate.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c
index 16d3c35412b..ee50bbeca52 100644
--- a/usr.bin/mandoc/mdoc_validate.c
+++ b/usr.bin/mandoc/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.26 2009/07/18 16:21:52 schwarze Exp $ */
+/* $Id: mdoc_validate.c,v 1.27 2009/07/18 19:44:38 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -870,6 +870,16 @@ post_bf(POST_ARGS)
static int
+post_lb(POST_ARGS)
+{
+
+ if (mdoc_a2lib(mdoc->last->child->string))
+ return(1);
+ return(mdoc_nwarn(mdoc, mdoc->last, ELIB));
+}
+
+
+static int
post_nm(POST_ARGS)
{