diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-30 05:29:00 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-30 05:29:00 +0000 |
commit | 6f59b6b73c064f18c6d34aa05adf831fee5a9350 (patch) | |
tree | 7470dd9d286ae7b220879cc6ca3ee5160e89ca60 /mdoc_man.c | |
parent | 09af02110fb2332decede6c59de9e177433c15d7 (diff) | |
download | mandoc-6f59b6b73c064f18c6d34aa05adf831fee5a9350.tar.gz mandoc-6f59b6b73c064f18c6d34aa05adf831fee5a9350.tar.zst mandoc-6f59b6b73c064f18c6d34aa05adf831fee5a9350.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 'mdoc_man.c')
-rw-r--r-- | mdoc_man.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.76 2014/11/27 22:27:56 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.77 2014/11/30 05:29:00 schwarze Exp $ */ /* * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> * @@ -1602,7 +1602,8 @@ static void post_pf(DECL_ARGS) { - outflags &= ~MMAN_spc; + if ( ! (n->next == NULL || n->next->flags & MDOC_LINE)) + outflags &= ~MMAN_spc; } static int |