aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-09-25 15:51:30 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-09-25 15:51:30 +0000
commit9313a37eec81b11df109fd39ed1815e565d3ec3a (patch)
treea1cf44fc82e1e218523af2e95facbfcc2cf88506 /mdoc_term.c
parent1d1acc2f68e2db828d54586d2a70fd956ae0d006 (diff)
downloadmandoc-9313a37eec81b11df109fd39ed1815e565d3ec3a.tar.gz
mandoc-9313a37eec81b11df109fd39ed1815e565d3ec3a.tar.zst
mandoc-9313a37eec81b11df109fd39ed1815e565d3ec3a.zip
Add `Rs' vertical-space in -T[x]html "SEE ALSO" section. Remove
corresponding TODO entry. Also have the "." after an `Rs' block trigger inter-sentence spacing.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index c2ba9eaf..7c70a1a5 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.185 2010/09/23 20:40:00 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.186 2010/09/25 15:51:30 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -2131,7 +2131,11 @@ termp____post(DECL_ARGS)
/* TODO: %U. */
p->flags |= TERMP_NOSPACE;
- term_word(p, n->next ? "," : ".");
+ if (NULL == n->next) {
+ term_word(p, ".");
+ p->flags |= TERMP_SENTENCE;
+ } else
+ term_word(p, ",");
}