diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-12-21 23:46:19 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-12-21 23:46:19 +0000 |
commit | 0df795a3754147b22ec5674d41012fb22d824111 (patch) | |
tree | 597cfcf13dcc047ce303b4bed08994f36f4c4007 /usr.bin/mandoc/mdoc.h | |
parent | e8f49b84262e629f7867f0d53aad501d917e970d (diff) |
Vertical spacing improvements from kristaps@, small tweaks by me:
Add a "last child" member to struct mdoc_node.
Remove .Pp or .Lp if it is the first or last child of an .Sh or .Ss body.
Thus, no need to do the same in the front-ends any longer.
Tolerate some cases of .Pp inside .Bl.
Diffstat (limited to 'usr.bin/mandoc/mdoc.h')
-rw-r--r-- | usr.bin/mandoc/mdoc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mdoc.h b/usr.bin/mandoc/mdoc.h index 4ab129e270d..b8510c9f625 100644 --- a/usr.bin/mandoc/mdoc.h +++ b/usr.bin/mandoc/mdoc.h @@ -1,4 +1,4 @@ -/* $Id: mdoc.h,v 1.36 2010/12/19 09:22:35 schwarze Exp $ */ +/* $Id: mdoc.h,v 1.37 2010/12/21 23:46:18 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -374,6 +374,7 @@ union mdoc_data { struct mdoc_node { struct mdoc_node *parent; /* parent AST node */ struct mdoc_node *child; /* first child AST node */ + struct mdoc_node *last; /* last child AST node */ struct mdoc_node *next; /* sibling AST node */ struct mdoc_node *prev; /* prior sibling AST node */ int nchild; /* number children */ |