aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--TODO6
-rw-r--r--mdoc_html.c6
-rw-r--r--mdoc_term.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/TODO b/TODO
index 9709f151..37cecbea 100644
--- a/TODO
+++ b/TODO
@@ -1,6 +1,6 @@
************************************************************************
* Official mandoc TODO.
-* $Id: TODO,v 1.50 2010/09/25 15:51:30 kristaps Exp $
+* $Id: TODO,v 1.51 2010/09/25 16:41:33 kristaps Exp $
************************************************************************
************************************************************************
@@ -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 2dd1b76f..1d389c91 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.105 2010/09/25 15:51:30 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.106 2010/09/25 16:41:33 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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 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;