diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-12-19 12:10:34 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-12-19 12:10:34 +0000 |
commit | 33f2974d553e965033ec550a4599b29621e881b8 (patch) | |
tree | db958fdb28313f56140bb5a2cbe65eb57e14c727 /usr.bin/mandoc | |
parent | e3f79ad526b63b3fa970a2d27322ecbececc6004 (diff) |
Handle .Bk the same way as groff 1.20.1:
.Bk without arguments defaults to -words.
.Bk with invalid arguments (including -lines) has no effect.
ok kristaps@
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/mdoc_term.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c index 65ceb6dd068..d80a4880de8 100644 --- a/usr.bin/mandoc/mdoc_term.c +++ b/usr.bin/mandoc/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.116 2010/12/11 14:29:56 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.117 2010/12/19 12:10:33 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -2137,7 +2137,8 @@ termp_bk_pre(DECL_ARGS) case (MDOC_HEAD): return(0); case (MDOC_BODY): - p->flags |= TERMP_PREKEEP; + if (n->parent->args || 0 == n->prev->nchild) + p->flags |= TERMP_PREKEEP; break; default: abort(); |