From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp1.rz.uni-karlsruhe.de (Debian-exim@smtp1.rz.uni-karlsruhe.de [129.13.185.217]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o5RJBl76000157 for ; Sun, 27 Jun 2010 15:11:47 -0400 (EDT) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by smtp1.rz.uni-karlsruhe.de with esmtp (Exim 4.63 #1) id 1OSxGZ-0004T7-K6; Sun, 27 Jun 2010 21:11:45 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.71) (envelope-from ) id 1OSxGZ-0004la-Iz; Sun, 27 Jun 2010 21:11:43 +0200 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.69) (envelope-from ) id 1OSxGZ-0002LU-II; Sun, 27 Jun 2010 21:11:43 +0200 Received: from schwarze by usta.de with local (Exim 4.71) (envelope-from ) id 1OSxGZ-0004sF-HR; Sun, 27 Jun 2010 21:11:43 +0200 Date: Sun, 27 Jun 2010 21:11:43 +0200 From: Ingo Schwarze To: discuss@mdocml.bsd.lv Cc: Jason McIntyre Subject: Giant .Bk magically doing the right thing?! Message-ID: <20100627191143.GM19398@iris.usta.de> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Hi, Jason just pointed me to a couple of instances of very strange .Bk usage that seem to magically do what you want - but i have no idea why, or how to implement this in mandoc. For example, from ifconfig(8): .Sh TUNNEL .Nm ifconfig .Bk -words .Ar tunnel-interface .Op Cm deletetunnel Ar src_address dest_address .Op Cm tunnel Ar src_address dest_address .Op Cm tunneldomain Ar route-id .Ek This gives, with both old and new groff: TUNNEL ifconfig tunnel-interface [deletetunnel src_address dest_address] [tunnel src_address dest_address] [tunneldomain route-id] Without the .Bk, of course, groff gives: TUNNEL ifconfig tunnel-interface [deletetunnel src_address dest_address] [tunnel src_address dest_address] [tunneldomain route-id] Now, as far as i have understood and as i have documented in mdoc(7), i think .Bk is supposed to keep the words in its block together. How is groff telling the difference between the two spaces in the string "dest_address] [tunnel src_address"? If the markup were .Sh TUNNEL .Nm ifconfig .Bk -words .Ar tunnel-interface .Op Cm deletetunnel Ar src_address dest_address .Ek .Bk -words .Op Cm tunnel Ar src_address dest_address .Ek .Bk -words .Op Cm tunneldomain Ar route-id .Ek i would understand. But as it is, it looks like magic... Any clues? Yours, Ingo -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv