=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_term.c,v retrieving revision 1.89 retrieving revision 1.90 diff -c -r1.89 -r1.90 *** src/usr.bin/mandoc/mdoc_term.c 2010/06/26 19:08:00 1.89 --- src/usr.bin/mandoc/mdoc_term.c 2010/06/27 01:24:02 1.90 *************** *** 1,4 **** ! /* $Id: mdoc_term.c,v 1.89 2010/06/26 19:08:00 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * --- 1,4 ---- ! /* $Id: mdoc_term.c,v 1.90 2010/06/27 01:24:02 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * *************** *** 68,73 **** --- 68,74 ---- static void termp_an_post(DECL_ARGS); static void termp_aq_post(DECL_ARGS); static void termp_bd_post(DECL_ARGS); + static void termp_bk_post(DECL_ARGS); static void termp_bl_post(DECL_ARGS); static void termp_bq_post(DECL_ARGS); static void termp_brq_post(DECL_ARGS); *************** *** 92,97 **** --- 93,99 ---- static int termp_aq_pre(DECL_ARGS); static int termp_bd_pre(DECL_ARGS); static int termp_bf_pre(DECL_ARGS); + static int termp_bk_pre(DECL_ARGS); static int termp_bl_pre(DECL_ARGS); static int termp_bold_pre(DECL_ARGS); static int termp_bq_pre(DECL_ARGS); *************** *** 231,237 **** { NULL, NULL }, /* Fc */ { termp_op_pre, termp_op_post }, /* Oo */ { NULL, NULL }, /* Oc */ ! { NULL, NULL }, /* Bk */ { NULL, NULL }, /* Ek */ { termp_bt_pre, NULL }, /* Bt */ { NULL, NULL }, /* Hf */ --- 233,239 ---- { NULL, NULL }, /* Fc */ { termp_op_pre, termp_op_post }, /* Oo */ { NULL, NULL }, /* Oc */ ! { termp_bk_pre, termp_bk_post }, /* Bk */ { NULL, NULL }, /* Ek */ { termp_bt_pre, NULL }, /* Bt */ { NULL, NULL }, /* Hf */ *************** *** 2096,2101 **** --- 2098,2121 ---- return(0); } + + /* ARGSUSED */ + static int + termp_bk_pre(DECL_ARGS) + { + + p->flags |= TERMP_PREKEEP; + return(1); + } + + + /* ARGSUSED */ + static void + termp_bk_post(DECL_ARGS) + { + + p->flags &= ~(TERMP_KEEP | TERMP_PREKEEP); + } /* ARGSUSED */ static int