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 | 9d91b408bd0d0a734262b70bd00b00aeb0c856c1 (patch) | |
tree | 14a0c73ac23303e43e790a2b519eb547d142a015 /mdoc_term.c | |
parent | 9313a37eec81b11df109fd39ed1815e565d3ec3a (diff) | |
download | mandoc-9d91b408bd0d0a734262b70bd00b00aeb0c856c1.tar.gz mandoc-9d91b408bd0d0a734262b70bd00b00aeb0c856c1.tar.zst mandoc-9d91b408bd0d0a734262b70bd00b00aeb0c856c1.zip |
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_term.c')
-rw-r--r-- | mdoc_term.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 7c70a1a5..14ac08cb 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.186 2010/09/25 15:51:30 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.187 2010/09/25 16:41:33 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -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; |