From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id oBJCBhln011904 for ; Sun, 19 Dec 2010 07:11:43 -0500 (EST) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id oBJCBgO8010544; Sun, 19 Dec 2010 07:11:42 -0500 (EST) Date: Sun, 19 Dec 2010 07:11:42 -0500 (EST) Message-Id: <201012191211.oBJCBgO8010544@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Handle .Bk the same way as groff 1.20.1: .Bk without arguments X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Handle .Bk the same way as groff 1.20.1: .Bk without arguments defaults to -words. .Bk with invalid arguments (including -lines) has no effect. ok kristaps@ Modified Files: -------------- mdocml: mdoc_term.c Revision Data ------------- Index: mdoc_term.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v retrieving revision 1.199 retrieving revision 1.200 diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.199 -r1.200 --- mdoc_term.c +++ mdoc_term.c @@ -2117,7 +2117,8 @@ termp_bk_pre(DECL_ARGS) case (MDOC_HEAD): return(0); case (MDOC_BODY): - p->flags |= TERMP_PREKEEP; + if (n->parent->args || 0 == n->prev->nchild) + p->flags |= TERMP_PREKEEP; break; default: abort(); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv