aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_term.c
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
commitfa2384cb647943142a3a123b0df97d4e0a2c9533 (patch)
tree0ecf6281c4d148d7e07ba1d2ff00c8ec920fe55e /mdoc_term.c
parent54f2a620ef81531e9476ec8df569f6d85f8d375a (diff)
downloadmandoc-fa2384cb647943142a3a123b0df97d4e0a2c9533.tar.gz
mandoc-fa2384cb647943142a3a123b0df97d4e0a2c9533.tar.zst
mandoc-fa2384cb647943142a3a123b0df97d4e0a2c9533.zip
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 'mdoc_term.c')
-rw-r--r--mdoc_term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 9079a66c..1aa613db 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.246 2013/05/18 17:47:47 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.247 2013/05/29 15:40:22 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);
}