aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-30 05:29:00 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-30 05:29:00 +0000
commit6f59b6b73c064f18c6d34aa05adf831fee5a9350 (patch)
tree7470dd9d286ae7b220879cc6ca3ee5160e89ca60 /mdoc_man.c
parent09af02110fb2332decede6c59de9e177433c15d7 (diff)
downloadmandoc-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index 41cc65b5..974cfbd4 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -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