summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-05-29 15:40:22 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-05-29 15:40:22 +0000
commita179c7ed6c4435e934471a7f39ff5517b6d176b8 (patch)
tree26fbd56fc7f3d860809bee8e2bc5d204a79d7f21
parent03185a10aa6972aeaa81144ae84194480f5549a5 (diff)
downloadmandoc-a179c7ed6c4435e934471a7f39ff5517b6d176b8.tar.gz
In SYNOPSIS mode, .Ek doesn't end a keep.
Found and fixed on the plane to the OpenBSD t2k13 hackathon in Toronto.
-rw-r--r--mdoc_man.c2
-rw-r--r--mdoc_term.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index 18e3a83a..97127d11 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -901,7 +901,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/mdoc_term.c b/mdoc_term.c
index 015af506..dadbf513 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -2215,7 +2215,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);
}