diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-09-25 16:41:33 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-09-25 16:41:33 +0000 |
commit | 9e1f1ef7e0a526da2ddcb907a1799e7cd5b10813 (patch) | |
tree | ecc65855062e6d177241d54d556b23f46b9f3c8d /mdoc_html.c | |
parent | 75e47454ebb9c175bc6a63e6612d125247626e26 (diff) | |
download | mandoc-9e1f1ef7e0a526da2ddcb907a1799e7cd5b10813.tar.gz |
A `%T' invoked outside of `Rs' should not produce trailing punctuation.
This from a TODO entry. Also stripped the superfluous NOSPACE, which is
handled in term_word() or print_text() anyway.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 ? "," : "."); } |