diff options
author | 2013-12-24 20:45:21 +0000 | |
---|---|---|
committer | 2013-12-24 20:45:21 +0000 | |
commit | 4b1aedf8c8bc3e03034d513d5482e4eacccb7b6d (patch) | |
tree | bfbe607ba50c5a201582e683a59b13c9ff0011dd /usr.bin/mandoc/mdoc_macro.c | |
parent | When deciding whether two consecutive macros are on the same input line, (diff) | |
download | wireguard-openbsd-4b1aedf8c8bc3e03034d513d5482e4eacccb7b6d.tar.xz wireguard-openbsd-4b1aedf8c8bc3e03034d513d5482e4eacccb7b6d.zip |
It turns out SYNOPSIS mode does not imply .Bk in general,
but only within .Nm blocks. Simplify the code accordingly.
This reduces groff-mandoc differences in base by about 2%.
Triggered by research done by Franco Fichtner.
Diffstat (limited to 'usr.bin/mandoc/mdoc_macro.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_macro.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_macro.c b/usr.bin/mandoc/mdoc_macro.c index 759adc273b6..caca6a4e914 100644 --- a/usr.bin/mandoc/mdoc_macro.c +++ b/usr.bin/mandoc/mdoc_macro.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_macro.c,v 1.81 2013/12/24 19:10:34 schwarze Exp $ */ +/* $Id: mdoc_macro.c,v 1.82 2013/12/24 20:45:21 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> @@ -709,8 +709,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; |