diff options
-rw-r--r-- | TODO | 4 | ||||
-rw-r--r-- | mdoc_html.c | 4 | ||||
-rw-r--r-- | mdoc_term.c | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -149,10 +149,6 @@ there is no point in rendering two commata, see the first paragraph of the DESCRIPTION in OpenBSD mount_nfs(8). -- When .%T is used outside an .Rs context and without a trailing comma, - no comma should be rendered at all, - see the first paragraph of the DESCRIPTION in OpenBSD exports(5). - - Bogus .Pp before .Bl should not cause a double blank line, see "The route utility provides the following simple commands:" in OpenBSD route(8). diff --git a/mdoc_html.c b/mdoc_html.c index 2547f190..ad5b0872 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -2263,7 +2263,9 @@ mdoc__x_post(MDOC_ARGS) /* TODO: %U */ - h->flags |= HTML_NOSPACE; + if (NULL == n->parent || MDOC_Rs != n->parent->tok) + return; + print_text(h, n->next ? "," : "."); } diff --git a/mdoc_term.c b/mdoc_term.c index f4a9cea2..8bc92be1 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -2130,7 +2130,9 @@ termp____post(DECL_ARGS) /* TODO: %U. */ - p->flags |= TERMP_NOSPACE; + if (NULL == n->parent || MDOC_Rs != n->parent->tok) + return; + if (NULL == n->next) { term_word(p, "."); p->flags |= TERMP_SENTENCE; |