=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.175 retrieving revision 1.177 diff -u -p -r1.175 -r1.177 --- mandoc/mdoc_term.c 2010/07/19 11:06:31 1.175 +++ mandoc/mdoc_term.c 2010/07/21 21:55:33 1.177 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.175 2010/07/19 11:06:31 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.177 2010/07/21 21:55:33 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -208,7 +208,7 @@ static const struct termact termacts[MDOC_MAX] = { { termp_under_pre, NULL }, /* Em */ { NULL, NULL }, /* Eo */ { termp_xx_pre, NULL }, /* Fx */ - { termp_bold_pre, NULL }, /* Ms */ /* FIXME: convert to symbol? */ + { termp_bold_pre, NULL }, /* Ms */ { NULL, NULL }, /* No */ { termp_ns_pre, NULL }, /* Ns */ { termp_xx_pre, NULL }, /* Nx */ @@ -1026,7 +1026,8 @@ termp_nm_pre(DECL_ARGS) if (NULL == n->child && NULL == m->name) return(0); - synopsis_pre(p, n); + if (MDOC_HEAD == n->type) + synopsis_pre(p, n->parent); if (MDOC_HEAD == n->type && n->next->child) { p->flags |= TERMP_NOSPACE | TERMP_NOBREAK | TERMP_HANG;