=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.80 retrieving revision 1.82 diff -u -p -r1.80 -r1.82 --- mandoc/mdoc_term.c 2009/09/24 09:50:31 1.80 +++ mandoc/mdoc_term.c 2009/09/24 11:55:28 1.82 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.80 2009/09/24 09:50:31 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.82 2009/09/24 11:55:28 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -261,8 +261,8 @@ static const struct termact termacts[MDOC_MAX] = { { termp_brq_pre, termp_brq_post }, /* Bro */ { NULL, NULL }, /* Brc */ { NULL, NULL }, /* %C */ - { NULL, NULL }, /* Es */ - { NULL, NULL }, /* En */ + { NULL, NULL }, /* Es */ /* TODO */ + { NULL, NULL }, /* En */ /* TODO */ { termp_xx_pre, NULL }, /* Dx */ { NULL, NULL }, /* %Q */ { termp_sp_pre, NULL }, /* br */ @@ -1417,7 +1417,7 @@ termp_bt_pre(DECL_ARGS) { term_word(p, "is currently in beta test."); - return(1); + return(0); } @@ -1426,7 +1426,8 @@ static void termp_lb_post(DECL_ARGS) { - term_newln(p); + if (SEC_LIBRARY == node->sec) + term_newln(p); } @@ -1517,10 +1518,6 @@ static int termp_fn_pre(DECL_ARGS) { const struct mdoc_node *n; - - assert(node->child && MDOC_TEXT == node->child->type); - - /* FIXME: can be "type funcname" "type varname"... */ p->bold++; term_word(p, node->child->string);