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_html.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_html.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index e4b9389d29a..b22e2f29e44 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_html.c,v 1.88 2014/11/27 22:27:40 schwarze Exp $ */ +/* $OpenBSD: mdoc_html.c,v 1.89 2014/11/30 05:28:00 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -1867,7 +1867,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 |