summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-09-25 16:41:33 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-09-25 16:41:33 +0000
commit9e1f1ef7e0a526da2ddcb907a1799e7cd5b10813 (patch)
treeecc65855062e6d177241d54d556b23f46b9f3c8d /mdoc_html.c
parent75e47454ebb9c175bc6a63e6612d125247626e26 (diff)
downloadmandoc-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.c4
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 ? "," : ".");
}