summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/libmdoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2012-07-18 11:09:31 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2012-07-18 11:09:31 +0000
commitf0649356f08ec54bfa01c6ab733db8d7e0d04e42 (patch)
tree4a292fcca0b81b1732f41387e6413b7550b55338 /usr.bin/mandoc/libmdoc.h
parent60dd10dead840994ee21087a8fcdcf92aa139c64 (diff)
Fix handling of paragraph macros inside lists:
* When they are trailing the last item, move them outside the list. * When they are trailing any other none-compact item, drop them. Improves formatting of 40 pages, e.g. grep(1), ksh(1), netstat(1), ath(4), bsd.port.mk(5), pf.conf(5), mount(8), crypto(9).
Diffstat (limited to 'usr.bin/mandoc/libmdoc.h')
-rw-r--r--usr.bin/mandoc/libmdoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/libmdoc.h b/usr.bin/mandoc/libmdoc.h
index b2903007b1e..f82dfb58140 100644
--- a/usr.bin/mandoc/libmdoc.h
+++ b/usr.bin/mandoc/libmdoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmdoc.h,v 1.49 2012/05/24 23:33:23 schwarze Exp $ */
+/* $Id: libmdoc.h,v 1.50 2012/07/18 11:09:30 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -118,6 +118,7 @@ int mdoc_endbody_alloc(struct mdoc *m, int line, int pos,
enum mdoct tok, struct mdoc_node *body,
enum mdoc_endbody end);
void mdoc_node_delete(struct mdoc *, struct mdoc_node *);
+int mdoc_node_relink(struct mdoc *, struct mdoc_node *);
void mdoc_hash_init(void);
enum mdoct mdoc_hash_find(const char *);
const char *mdoc_a2att(const char *);