source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Handle .Bk the same way as groff 1.20.1: .Bk without arguments
@ 2010-12-19 12:11 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2010-12-19 12:11 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-19 12:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-19 12:11 mdocml: Handle .Bk the same way as groff 1.20.1: .Bk without arguments schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).