diff options
author | 2012-07-18 11:09:30 +0000 | |
---|---|---|
committer | 2012-07-18 11:09:30 +0000 | |
commit | bb99f0faa0a8ee1148db6c0919034af3ebb54caa (patch) | |
tree | 5f8f940d42e7fe80e5597e4f1fed801ac64e91e1 /usr.bin/mandoc/libmdoc.h | |
parent | The mdoc(7) \*(Ba predefined string actually forces roman font; (diff) | |
download | wireguard-openbsd-bb99f0faa0a8ee1148db6c0919034af3ebb54caa.tar.xz wireguard-openbsd-bb99f0faa0a8ee1148db6c0919034af3ebb54caa.zip |
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.h | 3 |
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 *); |