diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2013-05-29 15:40:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2013-05-29 15:40:15 +0000 |
commit | bbac36c55258a9b42c1913bebe646cc29572a08d (patch) | |
tree | b47c48b49a8c407e1da0423de42ff522e1610aec /usr.bin/mandoc | |
parent | 6896c11351c94e4440d39d70824084a0168d095e (diff) |
In SYNOPSIS mode, .Ek doesn't end a keep.
Found and fixed on the plane to the OpenBSD t2k13 hackathon in Toronto.
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/mdoc_man.c | 4 | ||||
-rw-r--r-- | usr.bin/mandoc/mdoc_term.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c index 0b172127d9e..4ad95c77063 100644 --- a/usr.bin/mandoc/mdoc_man.c +++ b/usr.bin/mandoc/mdoc_man.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.48 2013/05/19 21:40:18 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.49 2013/05/29 15:40:14 schwarze Exp $ */ /* * Copyright (c) 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> * @@ -897,7 +897,7 @@ static void post_bk(DECL_ARGS) { - if (MDOC_BODY == n->type) + if (MDOC_BODY == n->type && ! (MDOC_SYNPRETTY & n->flags)) outflags &= ~MMAN_Bk; } diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c index ec1955d3e84..4df769b7bf5 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.148 2013/05/18 17:47:17 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.149 2013/05/29 15:40:14 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012 Ingo Schwarze <schwarze@openbsd.org> @@ -2211,7 +2211,7 @@ static void termp_bk_post(DECL_ARGS) { - if (MDOC_BODY == n->type) + if (MDOC_BODY == n->type && ! (MDOC_SYNPRETTY & n->flags)) p->flags &= ~(TERMP_KEEP | TERMP_PREKEEP); } |