=================================================================== RCS file: /cvs/mandoc/term.c,v retrieving revision 1.56 retrieving revision 1.58 diff -u -p -r1.56 -r1.58 --- mandoc/term.c 2009/03/12 15:55:11 1.56 +++ mandoc/term.c 2009/03/13 07:46:10 1.58 @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.56 2009/03/12 15:55:11 kristaps Exp $ */ +/* $Id: term.c,v 1.58 2009/03/13 07:46:10 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -295,6 +295,7 @@ const struct termact __termacts[MDOC_MAX] = { { termp_brq_pre, termp_brq_post }, /* Brq */ { termp_brq_pre, termp_brq_post }, /* Bro */ { NULL, NULL }, /* Brc */ + { NULL, NULL }, /* %C */ }; const struct termact *termacts = __termacts; @@ -838,6 +839,7 @@ termp_rv_pre(DECL_ARGS) p->flags |= ttypes[TTYPE_FUNC_NAME]; word(p, *node->args->argv[i].value); p->flags &= ~ttypes[TTYPE_FUNC_NAME]; + p->flags |= TERMP_NOSPACE; word(p, "() function returns the value 0 if successful;"); word(p, "otherwise the value -1 is returned and the"); @@ -1467,8 +1469,12 @@ termp_ss_pre(DECL_ARGS) { switch (node->type) { + case (MDOC_BLOCK): + newln(p); + if (node->prev) + vspace(p); + break; case (MDOC_HEAD): - vspace(p); TERMPAIR_SETFLAG(p, pair, ttypes[TTYPE_SSECTION]); p->offset = INDENT / 2; break;