=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.185 retrieving revision 1.187 diff -u -p -r1.185 -r1.187 --- mandoc/mdoc_term.c 2010/09/23 20:40:00 1.185 +++ mandoc/mdoc_term.c 2010/09/25 16:41:33 1.187 @@ -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.187 2010/09/25 16:41:33 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -2130,8 +2130,14 @@ termp____post(DECL_ARGS) /* TODO: %U. */ - p->flags |= TERMP_NOSPACE; - term_word(p, n->next ? "," : "."); + if (NULL == n->parent || MDOC_Rs != n->parent->tok) + return; + + if (NULL == n->next) { + term_word(p, "."); + p->flags |= TERMP_SENTENCE; + } else + term_word(p, ","); }