diff options
author | 2014-11-30 05:28:00 +0000 | |
---|---|---|
committer | 2014-11-30 05:28:00 +0000 | |
commit | 88fc18581aa850bd28b42987f83e87937dfdc6de (patch) | |
tree | a689608c319862ac1de5b646f6da5ddaead00249 /usr.bin/mandoc/mdoc_man.c | |
parent | Even though not callable, "Ed" is a macro name, so for clarity, (diff) | |
download | wireguard-openbsd-88fc18581aa850bd28b42987f83e87937dfdc6de.tar.xz wireguard-openbsd-88fc18581aa850bd28b42987f83e87937dfdc6de.zip |
Multiple fixes with respect to .Pf:
* The first argument of .Pf is not parsed.
* Normal delimiter handling does not apply to the first argument of .Pf.
* Warn if nothing follows a prefix (inspired by groff_mdoc(7)).
* In that case, do not suppress spacing.
Diffstat (limited to 'usr.bin/mandoc/mdoc_man.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_man.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c index 256ea37f390..5989154f41d 100644 --- a/usr.bin/mandoc/mdoc_man.c +++ b/usr.bin/mandoc/mdoc_man.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_man.c,v 1.74 2014/11/27 22:27:40 schwarze Exp $ */ +/* $OpenBSD: mdoc_man.c,v 1.75 2014/11/30 05:28:00 schwarze Exp $ */ /* * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> * @@ -1600,7 +1600,8 @@ static void post_pf(DECL_ARGS) { - outflags &= ~MMAN_spc; + if ( ! (n->next == NULL || n->next->flags & MDOC_LINE)) + outflags &= ~MMAN_spc; } static int |