summaryrefslogtreecommitdiffstats
path: root/mdoc_macro.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-12-24 20:45:27 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-12-24 20:45:27 +0000
commit472637a00de4c03052114688d7473918eb455561 (patch)
treee3ad1192f26e0fec58145953e745e833430faacd /mdoc_macro.c
parent8d226e7d9f28fbbca5bd6969e8fe3e6ee69ec94e (diff)
downloadmandoc-472637a00de4c03052114688d7473918eb455561.tar.gz
It turns out SYNOPSIS mode does not imply .Bk in general,
but only within .Nm blocks. Simplify the code accordingly. Triggered by research done by Franco Fichtner.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index fd3f8764..cc75b7e7 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -713,8 +713,7 @@ blk_exp_close(MACRO_PROT_ARGS)
maxargs = 1;
break;
case (MDOC_Ek):
- if ( ! (MDOC_SYNOPSIS & mdoc->flags))
- mdoc->flags &= ~MDOC_KEEP;
+ mdoc->flags &= ~MDOC_KEEP;
default:
maxargs = 0;
break;