aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.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_html.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_html.c')
-rw-r--r--mdoc_html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 0cd3cf01..dd1d9970 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.213 2014/11/27 22:27:56 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.214 2014/11/30 05:29:00 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -1869,7 +1869,8 @@ static void
mdoc_pf_post(MDOC_ARGS)
{
- h->flags |= HTML_NOSPACE;
+ if ( ! (n->next == NULL || n->next->flags & MDOC_LINE))
+ h->flags |= HTML_NOSPACE;
}
static int